Skip to content

Instantly share code, notes, and snippets.

@EdwardPrentice
Last active March 28, 2021 16:25
Show Gist options
  • Save EdwardPrentice/38e0f1d9875ca80805504c4c719d90c8 to your computer and use it in GitHub Desktop.
Save EdwardPrentice/38e0f1d9875ca80805504c4c719d90c8 to your computer and use it in GitHub Desktop.
#!/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