use npm checksum

This commit is contained in:
Peter Squicciarini 2021-01-12 15:44:17 -08:00
parent 78aa52ea05
commit 9bfe5e3b73

6
sum.sh
View File

@ -1,9 +1,11 @@
#!/bin/bash
npm install -g checksum
sum_file () {
if [[ -f "$1" ]]; then
shasum -a 256 "$1" > "$1".sha256
shasum "$1" > "$1".sha1
checksum -a sha256 "$1" > "$1".sha256
checksum "$1" > "$1".sha1
fi
}