commit: ef5477c74acdefb007deffe0198f5449b1262dcc
parent f3f140783d0e031fa6ef5ba6c71a91059d71eee6
Author: fosslinux <fosslinux@aussies.space>
Date: Mon, 3 Feb 2025 10:11:44 +1100
Up retries to 3, sleep between retries
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/mirror.sh b/mirror.sh
@@ -80,8 +80,8 @@ do_file() {
fi
fi
- # Attempt up to 2 times
- retries=2
+ # Attempt up to 3 times
+ retries=3
matching=no
while [ "${retries}" -gt 0 ]; do
download_file "${uri}" "${dest}/${filename}"
@@ -95,6 +95,7 @@ do_file() {
echo "${uri}: checksum did not match, trying again"
rm "${dest}/${filename}"
fi
+ sleep 1
done
if [ "${matching}" = "no" ]; then