mirror of
https://github.com/dockur/macos.git
synced 2026-03-11 08:34:24 +00:00
feat: Resume failed download (#301)
This commit is contained in:
parent
fb044b9158
commit
109b84fd6f
1 changed files with 6 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue