add commands to checksum and sign files in dir

This commit is contained in:
Jeffrey Paul 2018-09-19 11:40:32 -07:00
parent 861e527aa8
commit 7ee4470545
2 changed files with 17 additions and 0 deletions

6
bin/check-dir-sig Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
SNEAK_KEY_ID="5539AD00DE4C42F3AFE11575052443F4DF2A55C2"
gpg --verify SHASUMS.asc SHASUMS
shasum -c SHASUMS

11
bin/sign-dir Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
SNEAK_KEY_ID="5539AD00DE4C42F3AFE11575052443F4DF2A55C2"
if [[ -e ./SHASUMS ]]; then
echo "SHASUMS already exists, exiting." > /dev/stderr
exit 1
fi
shasum * > SHASUMS
gpg -u $SNEAK_KEY_ID -a --output SHASUMS.asc --detach-sig SHASUMS