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:
parent
cb19686d79
commit
28c372e838
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user