From 7497b63c79e18b22826f300b8cea19038e335064 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Sun, 15 Sep 2024 21:41:54 +0200 Subject: [PATCH] Fix shasum for NC30 For some reason there's now a metadata file as well... This fix only checks the first row which is the correct file (shasum) Signed-off-by: Daniel Hansson --- lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.sh b/lib.sh index ea9f99c2c1..ee9d533ce5 100644 --- a/lib.sh +++ b/lib.sh @@ -1386,7 +1386,7 @@ fi print_text_in_color "$ICyan" "Checking SHA256 checksum..." mkdir -p "$SHA256_DIR" curl_to_dir "$NCREPO" "$STABLEVERSION.tar.bz2.sha256" "$SHA256_DIR" -SHA256SUM="$(tail "$SHA256_DIR"/"$STABLEVERSION".tar.bz2.sha256 | awk '{print$1}')" +SHA256SUM="$(tail "$SHA256_DIR"/"$STABLEVERSION".tar.bz2.sha256 | awk '{print$1}' | head -1)" if ! echo "$SHA256SUM" "$STABLEVERSION.tar.bz2" | sha256sum -c then msg_box "The SHA256 checksums of $STABLEVERSION.tar.bz2 didn't match, please try again."