fixup!
This commit is contained in:
parent
5128947437
commit
0dc51890b5
|
@ -1 +0,0 @@
|
|||
a2577b1eb4dfc9dd142bc8bc91f6c569101eef61d1c47ddbd4e9625079fdb5a4
|
|
@ -1 +0,0 @@
|
|||
5027c07471f7a1413d5cc10da21f01bc167c6b69d1a3913cb739208483cce79b
|
|
@ -1 +0,0 @@
|
|||
b1eb4d54c3623dfdaef8293ce8fa2bfdb1397d59d135711e43a5a21e882cc2ed
|
10
src/sum.sh
10
src/sum.sh
|
@ -15,10 +15,14 @@ calculate_hashes() {
|
|||
return 1
|
||||
fi
|
||||
|
||||
# Use shasum by default, and fallback to sha256sum if available
|
||||
local hash_cmd="shasum -a 256"
|
||||
# Determine the hash command to use
|
||||
if command -v sha256sum >/dev/null 2>&1; then
|
||||
hash_cmd="sha256sum"
|
||||
local hash_cmd="sha256sum"
|
||||
elif command -v shasum >/dev/null 2>&1; then
|
||||
local hash_cmd="shasum -a 256"
|
||||
else
|
||||
echo "Neither sha256sum nor shasum is available."
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Function to process the src directory
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
5d7646254d8f39bbd65b4473a3c8854eb088a566c0fc60ee9948a66ac8797e10
|
Loading…
Reference in New Issue