Created
March 23, 2017 18:11
-
-
Save Shinzu/d78243e000f94c6b008227583183185f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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