From ad8d81a77dcc0c24327febf687fb0254d115780e Mon Sep 17 00:00:00 2001 From: Kroese Date: Sat, 4 May 2024 18:25:12 +0200 Subject: [PATCH] Update install.sh --- src/install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/install.sh b/src/install.sh index cee4761..5b30bef 100644 --- a/src/install.sh +++ b/src/install.sh @@ -307,8 +307,8 @@ verifyFile() { [ -z "$check" ] && return 0 [[ "${#check}" == "40" ]] && algo="SHA1" - html "Verifying downloaded ISO..." - info "Calculating $algo checksum of the ISO file..." + local msg="Verifying downloaded ISO..." + info "$msg" && html "$msg" if [[ "${algo,,}" != "sha256" ]]; then hash=$(sha1sum "$iso" | cut -f1 -d' ') @@ -345,6 +345,7 @@ downloadFile() { fi local msg="Downloading $desc..." + html "$msg" domain=$(echo "$url" | awk -F/ '{print $3}') dots=$(echo "$domain" | tr -cd '.' | wc -c) @@ -354,7 +355,7 @@ downloadFile() { msg="Downloading $desc from $domain..." fi - info "$msg" && html "$msg" + info "$msg" /run/progress.sh "$iso" "$size" "Downloading $desc ([P])..." & { wget "$url" -O "$iso" -q --timeout=10 --show-progress "$progress"; rc=$?; } || :