From 4a9ae82d92c86b10b4921c06bf6ccfedfeaadc6d Mon Sep 17 00:00:00 2001 From: Kroese Date: Tue, 4 Jun 2024 15:50:02 +0200 Subject: [PATCH] Update install.sh --- src/install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/install.sh b/src/install.sh index ac74517..bb4efff 100644 --- a/src/install.sh +++ b/src/install.sh @@ -148,6 +148,7 @@ if [ ! -s "$RDC" ]; then fKill "progress.sh" (( 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 != 22 )) && (( rc != 56 )); then @@ -172,6 +173,7 @@ if [ ! -s "$RDC" ]; then fKill "progress.sh" (( 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 tar --extract --file="$PAT" --directory="$(dirname "$RD")"/. "$(basename "$RD")" @@ -247,6 +249,7 @@ else fKill "progress.sh" (( 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 fi