mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-14 07:19:40 +02:00
curl/wget downloads: set re-try count to 3
explicitly set the count to 3, so that a maximum of 3 attemps are made per download, barring fatal errors such as http 404. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -111,7 +111,7 @@ download_image()
|
||||
_sha1sum=${3}
|
||||
|
||||
printf "Downloading recovery image\n"
|
||||
curl "$url" > "$_file.zip" || err "download_image: curl failed"
|
||||
curl --retry 3 "$url" > "$_file.zip" || err "download_image: curl failed"
|
||||
printf "Verifying recovery image checksum\n"
|
||||
if [ "$(sha1sum "${_file}.zip" | awk '{print $1}')" = "${_sha1sum}" ]
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user