Fixed gpg --gen-key.

This commit is contained in:
Storm Dragon 2019-07-21 17:46:11 -04:00
parent d92990c21c
commit bcc9861ce9

View File

@ -167,7 +167,7 @@ EOF
echo "set pgp_timeout=1800" >> "$muttHome/gpg.rc"
if [[ $(gpg --list-secret-keys | wc -l) -eq 0 ]]; then
read -p "$(gettext "No gpg key was found. Type your name and press entr to generate a PGP key.control+c if you would like to create it manually.") " continue
gpg --gen-key "${continue:-${USER}}"
gpg --gen-key
fi
PS3="$(gettext "Select the key you want to use for encryption/signing:")"
select key in $(gpg --list-secret-keys | grep '.*@.*' | cut -d '<' -f2 | cut -d '>' -f1) ; do