From 2ccc558588dc57acc07a9ec6acd226e280a3839d Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 17 May 2024 16:05:32 +0200 Subject: [PATCH] fix: Display reason for network failure --- src/install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/install.sh b/src/install.sh index 098881a..6cac43e 100644 --- a/src/install.sh +++ b/src/install.sh @@ -41,6 +41,7 @@ info "$msg" && html "$msg" fKill "progress.sh" +(( rc == 4 )) && error "Failed to download $BOOT , network failure!" && exit 60 (( rc != 0 )) && error "Failed to download $BOOT , reason: $rc" && exit 60 [ ! -s "$TMP" ] && error "Failed to download $BOOT" && exit 61