Update install.sh

This commit is contained in:
Kroese 2024-06-04 15:50:02 +02:00 committed by GitHub
parent 9f7d1396b6
commit 4a9ae82d92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -148,6 +148,7 @@ if [ ! -s "$RDC" ]; then
fKill "progress.sh" fKill "progress.sh"
(( rc == 4 )) && error "Failed to download $LOC , network failure!" && exit 60 (( rc == 4 )) && error "Failed to download $LOC , network failure!" && exit 60
(( rc == 8 )) && error "Failed to download $LOC , server issued an error response!" && exit 60
if (( rc != 0 )); then if (( rc != 0 )); then
if (( rc != 22 )) && (( rc != 56 )); then if (( rc != 22 )) && (( rc != 56 )); then
@ -172,6 +173,7 @@ if [ ! -s "$RDC" ]; then
fKill "progress.sh" fKill "progress.sh"
(( rc == 4 )) && error "Failed to download $LOC , network failure!" && exit 60 (( rc == 4 )) && error "Failed to download $LOC , network failure!" && exit 60
(( rc == 8 )) && error "Failed to download $LOC , server issued an error response!" && exit 60
(( rc != 0 )) && error "Failed to download $LOC , reason: $rc" && exit 60 (( rc != 0 )) && error "Failed to download $LOC , reason: $rc" && exit 60
tar --extract --file="$PAT" --directory="$(dirname "$RD")"/. "$(basename "$RD")" tar --extract --file="$PAT" --directory="$(dirname "$RD")"/. "$(basename "$RD")"
@ -247,6 +249,7 @@ else
fKill "progress.sh" fKill "progress.sh"
(( rc == 4 )) && error "Failed to download $URL , network failure!" && exit 69 (( rc == 4 )) && error "Failed to download $URL , network failure!" && exit 69
(( rc == 8 )) && error "Failed to download $URL , server issued an error response!" && exit 69
(( rc != 0 )) && error "Failed to download $URL , reason: $rc" && exit 69 (( rc != 0 )) && error "Failed to download $URL , reason: $rc" && exit 69
fi fi