Update install.sh

This commit is contained in:
Kroese 2024-06-05 17:46:42 +02:00 committed by GitHub
parent 3e2246b800
commit 92cc2dcebf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,10 +45,11 @@ info "$msg..." && html "$msg..."
fKill "progress.sh" fKill "progress.sh"
(( rc == 4 )) && error "Failed to download $BOOT , network failure!" && exit 60 msg="Failed to download $BOOT"
(( rc == 8 )) && error "Failed to download $BOOT , server issued an error response!" && exit 60 (( rc == 4 )) && error "$msg , network failure!" && exit 60
(( rc != 0 )) && error "Failed to download $BOOT , reason: $rc" && exit 60 (( rc == 8 )) && error "$msg , server issued an error response!" && exit 60
[ ! -s "$TMP" ] && error "Failed to download $BOOT" && exit 61 (( rc != 0 )) && error "$msg , reason: $rc" && exit 60
[ ! -s "$TMP" ] && error "$msg" && exit 61
html "Download finished successfully..." html "Download finished successfully..."