From 92cc2dcebf052c23cc678e855f66ad0e2c03a54a Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 5 Jun 2024 17:46:42 +0200 Subject: [PATCH] Update install.sh --- src/install.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/install.sh b/src/install.sh index 42c411b..b520257 100644 --- a/src/install.sh +++ b/src/install.sh @@ -45,10 +45,11 @@ info "$msg..." && html "$msg..." fKill "progress.sh" -(( rc == 4 )) && error "Failed to download $BOOT , network failure!" && exit 60 -(( rc == 8 )) && error "Failed to download $BOOT , server issued an error response!" && exit 60 -(( rc != 0 )) && error "Failed to download $BOOT , reason: $rc" && exit 60 -[ ! -s "$TMP" ] && error "Failed to download $BOOT" && exit 61 +msg="Failed to download $BOOT" +(( rc == 4 )) && error "$msg , network failure!" && exit 60 +(( rc == 8 )) && error "$msg , server issued an error response!" && exit 60 +(( rc != 0 )) && error "$msg , reason: $rc" && exit 60 +[ ! -s "$TMP" ] && error "$msg" && exit 61 html "Download finished successfully..."