hacks/bin/sign-dir

12 lines
300 B
Plaintext
Raw Normal View History

#!/bin/bash
SNEAK_KEY_ID="5539AD00DE4C42F3AFE11575052443F4DF2A55C2"
if [[ -e ./SHASUMS ]]; then
echo "SHASUMS already exists, exiting." > /dev/stderr
exit 1
fi
2018-09-21 00:47:33 +00:00
find . -type f ! -name 'SHASUMS' -exec shasum {} \; >> SHASUMS
2018-09-19 18:41:43 +00:00
gpg -u $SNEAK_KEY_ID -a --output SHASUMS.sig --detach-sig SHASUMS