Last active
March 28, 2021 16:25
-
-
Save EdwardPrentice/38e0f1d9875ca80805504c4c719d90c8 to your computer and use it in GitHub Desktop.
This file contains 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/bash -eu | |
if [[ $# -eq 0 ]] ; then | |
echo "No argument supplied" | |
exit 1 | |
fi | |
gpgconf --reload gpg-agent # cleans out any failed attempts | |
gpg --decrypt $1 | |
gpgconf --reload gpg-agent # forget the password immediately |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment