mirror of
https://github.com/quickemu-project/quickemu.git
synced 2024-09-23 00:00:50 +02:00
Added Wget read-timeout and retry
Configure Wget to retry the download, when no packets are received for 10 seconds, for a total of 3 retries
This commit is contained in:
parent
195959a0a9
commit
f26a88bc5f
2
quickget
2
quickget
|
@ -846,7 +846,7 @@ function web_get() {
|
||||||
fi
|
fi
|
||||||
echo #Necessary as aria2c in suppressed mode does not have new lines
|
echo #Necessary as aria2c in suppressed mode does not have new lines
|
||||||
else
|
else
|
||||||
if ! wget --quiet --continue --show-progress --progress=bar:force:noscroll "${URL}" -O "${DIR}/${FILE}"; then
|
if ! wget --quiet --continue --tries=3 --read-timeout=10 --show-progress --progress=bar:force:noscroll "${URL}" -O "${DIR}/${FILE}"; then
|
||||||
echo "ERROR! Failed to download ${URL} with wget. Try running 'quickget' again."
|
echo "ERROR! Failed to download ${URL} with wget. Try running 'quickget' again."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user