From b1ec79840d4b9669f661b68c4aa52eefc46beb35 Mon Sep 17 00:00:00 2001 From: Frederik Baerentsen Date: Wed, 24 Jun 2020 08:54:07 +0200 Subject: [PATCH] Removed extra lines --- lego_dl.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lego_dl.sh b/lego_dl.sh index 25d6857..c5b2464 100644 --- a/lego_dl.sh +++ b/lego_dl.sh @@ -29,7 +29,7 @@ firstline=0 ##### CHANGE HERE ##### logfile="lego_errors.log" downloadFolder="../Instructions" -error_level=0 +error_level=1 ##### STOP CHANGE ##### echo "" > $logfile @@ -109,10 +109,8 @@ do echo "$filename is not available." >> $logfile fi else - #echo "___ URL $tLINK" echo -ne "--> $tID downloading now..." curl -H "Mozilla/5.0 (platform; rv:75.0) Gecko/20100101 Firefox/75.0" -L $tLINK --silent --output "$downloadFolder/$filename" - #wget -T20 --tries=3 --retry-connrefused --continue -O "Instructions/$filename" $tLINK if [ -f "$downloadFolder/$filename" ]; then echo "Done! > $filename" else @@ -124,7 +122,7 @@ do fi fi #random sleep in order to not look like a script - sleep $(( ( RANDOM % 5 ) + 1 )) + sleep $(( ( RANDOM % 1 ) + 1 )) fi fi fi