mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-16 03:25:25 +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:
@@ -440,7 +440,7 @@ fetch_update()
|
||||
[ -z "${x}" ] && continue
|
||||
rm -f "${dl_path}" || \
|
||||
err "fetch_update ${fw_type}: !rm -f ${dl_path}"
|
||||
wget -U "${agent}" "${x}" -O "${dl_path}" || continue
|
||||
wget --tries 3 -U "${agent}" "${x}" -O "${dl_path}" || continue
|
||||
vendor_checksum "${dlsum}" && dl_fail="n"
|
||||
done
|
||||
if [ "${dl_fail}" = "y" ]; then
|
||||
|
||||
Reference in New Issue
Block a user