WGET auto resume script for dropping connection

LINK='https://software-download.microsoft.com/db/Win10_2004_Italian_x64.iso'
SLEEPTIME='120'
while true
do
if wget -c ${LINK}; then
echo 'Download complete.'
break
else
sleep ${SLEEPTIME}
fi
done
Share This