generate full checksum

This commit is contained in:
techknowlogick 2023-03-18 01:27:14 -04:00
parent bda1f380e2
commit 0650d7c623
1 changed files with 3 additions and 1 deletions

View File

@ -7,4 +7,6 @@ if [ -z "$1" ]; then
exit 1
fi
shasum -a 256 "$1" | cut -d' ' -f1 > "$1".sha256
SUM=$(shasum -a 256 "$1" | cut -d' ' -f1)
BASENAME=$(basename "$1")
echo -n "${SUM} ${BASENAME}" > "$1".sha256