From da18118778952131888e5f4948bdb1c971043233 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 1 May 2024 05:16:16 +0200 Subject: [PATCH] Update install.sh --- src/install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/install.sh b/src/install.sh index fc29fe3..e4addfc 100644 --- a/src/install.sh +++ b/src/install.sh @@ -282,7 +282,7 @@ downloadFile() { local iso="$1" local url="$2" local desc="$3" - local rc progress domain + local rc progress domain hash rm -f "$iso" @@ -308,6 +308,11 @@ downloadFile() { if (( rc == 0 )) && [ -f "$iso" ]; then if [ "$(stat -c%s "$iso")" -gt 100000000 ]; then + if [[ "$VERIFY" == [Yy1]* ]]; then + info "Calculating SHA256 sum of downloaded ISO..." + hash=$(sha256sum "$iso") + info "Result: $hash" + fi html "Download finished successfully..." && return 0 fi fi