From 997bb53ab48c8d8e52c3800881f34a8628ebd3b7 Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 17 May 2024 16:10:33 +0200 Subject: [PATCH] fix: Display reason for network failure (#77) --- 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