Created
December 22, 2022 08:48
-
-
Save tgeek77/092f687aabcdc88ae6fa435dc1459ef6 to your computer and use it in GitHub Desktop.
This is my bash wrappe around nntp-pull so that is automatically restarts if an article is missing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while getopts g: flag | |
do | |
case "${flag}" in | |
g) group=${OPTARG};; | |
esac | |
done | |
downloader() { | |
nntp-pull -v $group | |
} | |
until downloader; do | |
echo "restarting download" >&2 | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment