Removed extra lines

This commit is contained in:
Frederik Baerentsen 2020-06-24 08:54:07 +02:00
parent 67312953a4
commit b1ec79840d

View File

@ -29,7 +29,7 @@ firstline=0
##### CHANGE HERE ##### ##### CHANGE HERE #####
logfile="lego_errors.log" logfile="lego_errors.log"
downloadFolder="../Instructions" downloadFolder="../Instructions"
error_level=0 error_level=1
##### STOP CHANGE ##### ##### STOP CHANGE #####
echo "" > $logfile echo "" > $logfile
@ -109,10 +109,8 @@ do
echo "$filename is not available." >> $logfile echo "$filename is not available." >> $logfile
fi fi
else else
#echo "___ URL $tLINK"
echo -ne "--> $tID downloading now..." 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" 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 if [ -f "$downloadFolder/$filename" ]; then
echo "Done! > $filename" echo "Done! > $filename"
else else
@ -124,7 +122,7 @@ do
fi fi
fi fi
#random sleep in order to not look like a script #random sleep in order to not look like a script
sleep $(( ( RANDOM % 5 ) + 1 )) sleep $(( ( RANDOM % 1 ) + 1 ))
fi fi
fi fi
fi fi