summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/checksum.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/checksum.sh b/scripts/checksum.sh
index 6452d932..4ecdd750 100644
--- a/scripts/checksum.sh
+++ b/scripts/checksum.sh
@@ -1,8 +1,10 @@
if command -v sha256sum >/dev/null; then
exec sha256sum "$@"
+elif command -v sha256 >/dev/null; then
+ exec sha256 "$@"
elif command -v shasum >/dev/null; then
exec shasum -a 256 "$@"
else
- printf '%s: sha256sum or shasum required\n' "$0" >&2
+ printf '%s: sha256sum, sha256, or shasum required\n' "$0" >&2
exit 1
fi