Use generic command for SHA-256

The command sha256sum does not exist on macOS, but `shasum -a256` works
both on Linux and macOS.

Co-authored-by: Romain Vimont <rom@rom1v.com>
This commit is contained in:
Muvaffak Onus 2024-11-23 18:00:45 +03:00 committed by Romain Vimont
parent 4771c89adf
commit 2a72a7fb40

View File

@ -59,7 +59,7 @@ checksum() {
local file="$1"
local sum="$2"
echo "$file: verifying checksum..."
echo "$sum $file" | sha256sum -c
echo "$sum $file" | shasum -a256 -c
}
get_file() {