Removed extra lines
This commit is contained in:
parent
67312953a4
commit
b1ec79840d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user