Skip to content

Commit

Permalink
Fix shasum for NC30
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
enoch85 authored Sep 15, 2024
1 parent c353929 commit 7497b63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 7497b63

Please sign in to comment.