#!/usr/bin/env bash set -euo pipefail cd "$(dirname "${BASH_SOURCE[0]}")" export POCKET_ARCHIVE='https://getpocket.com/users/euandreh/feed/read' export OUTPUT_DIR="$HOME/archive/archivebox/" export WGET_BINARY="$PWD/wget-4.sh" export FETCH_MEDIA=False if [ "${1-}" = "-s" ]; then curl -s "$POCKET_ARCHIVE" | archivebox >> /tmp/archivebox.log else curl -s "$POCKET_ARCHIVE" | archivebox fi