Use generic command for SHA-256

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

PR #5515 <https://github.com/Genymobile/scrcpy/pull/5515>

Co-authored-by: Romain Vimont <rom@rom1v.com>
Signed-off-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 cb19686d79
commit 28c372e838

View File

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