From 109b84fd6f9e7098f7c81b38d6915ed03a7696ef Mon Sep 17 00:00:00 2001 From: Kroese Date: Sat, 20 Sep 2025 14:46:28 +0200 Subject: [PATCH] feat: Resume failed download (#301) --- src/install.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/install.sh b/src/install.sh index e9931c6..75a8ae5 100644 --- a/src/install.sh +++ b/src/install.sh @@ -150,8 +150,12 @@ install() { local file="$STORAGE/boot.dmg" if ! download "$file" "$board" "$version"; then - rm -f "$file" - exit 60 + info "Retrying failed download in 5 seconds..." + sleep 5 + if ! download "$file" "$board" "$version"; then + rm -f "$file" + exit 60 + fi fi mv -f "$file" "$dest"