aboutsummaryrefslogtreecommitdiff
path: root/scripts/archive.sh
blob: 416b8330d0aae0aa0c8dbdc78a7c0e06f9ba5b69 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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