From 0d315c3a4eb75474b8753d3a51fb1ddd7382a3ea Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 4 Sep 2023 22:12:02 +0100 Subject: 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 --- script/update/blobs/download | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script/update/blobs/download') diff --git a/script/update/blobs/download b/script/update/blobs/download index 00c7b189..2903c504 100755 --- a/script/update/blobs/download +++ b/script/update/blobs/download @@ -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 -- cgit v1.2.1