Update install.sh

This commit is contained in:
Kroese 2024-05-01 05:16:16 +02:00 committed by GitHub
parent fc5bdce509
commit da18118778
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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