Skip to content

Instantly share code, notes, and snippets.

@Shinzu
Created March 23, 2017 18:11
Show Gist options
  • Save Shinzu/d78243e000f94c6b008227583183185f to your computer and use it in GitHub Desktop.
Save Shinzu/d78243e000f94c6b008227583183185f to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
RECIPIENTS=""
PWD=$( pwd )
for FILE in $( find $PWD -type f -name '*gpg-id*' ); do
RECIPIENTS+=$( cat $FILE | tr '\r\n' ' ' )
done
gpg -a --export $RECIPIENTS > .recipients.asc
chmod 664 .recipients.asc
git add .recipients.asc
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment