mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-18 09:15:23 +01:00
Up retries to 3, sleep between retries
This commit is contained in:
parent
f3f140783d
commit
ef5477c74a
1 changed files with 3 additions and 2 deletions
|
|
@ -80,8 +80,8 @@ do_file() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Attempt up to 2 times
|
# Attempt up to 3 times
|
||||||
retries=2
|
retries=3
|
||||||
matching=no
|
matching=no
|
||||||
while [ "${retries}" -gt 0 ]; do
|
while [ "${retries}" -gt 0 ]; do
|
||||||
download_file "${uri}" "${dest}/${filename}"
|
download_file "${uri}" "${dest}/${filename}"
|
||||||
|
|
@ -95,6 +95,7 @@ do_file() {
|
||||||
echo "${uri}: checksum did not match, trying again"
|
echo "${uri}: checksum did not match, trying again"
|
||||||
rm "${dest}/${filename}"
|
rm "${dest}/${filename}"
|
||||||
fi
|
fi
|
||||||
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "${matching}" = "no" ]; then
|
if [ "${matching}" = "no" ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue