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
#!/bin/sh | |
# | |
# git-crypt-unlock - Work around a bug in git-crypt. | |
umask 077 | |
for FILE in `find .git-crypt/keys/**/* -type f`; do | |
if gpg -q --decrypt < $FILE > git-crypt-symmetric-key 2> /dev/null; then | |
git-crypt unlock git-crypt-symmetric-key | |
rm -f git-crypt-symmetric-key | |
echo 'unlocked' |
OlderNewer