scripts

misc scripts and tools
git clone git://git.2f30.org/scripts
Log | Files | Refs

commit df86e2cc683f6b56915858aeba8913911a36a391
parent 06acf0c08ce8d34297861a983504ce6bc51d3dab
Author: sin <sin@2f30.org>
Date:   Sat,  6 Jul 2013 15:45:34 +0100

Fix vertical spacing + remove useless info

Diffstat:
M4chandownload.sh | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/4chandownload.sh b/4chandownload.sh @@ -33,21 +33,24 @@ echo "4chan downloader" while :; do done=1 + for arg in "$@"; do loc=$(echo "$arg" | egrep -o '([0-9]*)$' | sed 's/\.html//g') mkdir -p ${loc} cd ${loc} - echo "Downloading to $loc" pullthread "$arg" if [ $? -eq 0 ]; then done=0 fi + cd - &>/dev/null done + if [ $done -eq 1 ]; then exit 1 fi + echo "Waiting 30 seconds before next run" sleep 30 done