Updated key id.

This commit is contained in:
Storm Dragon 2016-07-14 09:04:05 -04:00
parent 5dff75ebd0
commit 8e9cb6a13e

View File

@ -122,6 +122,8 @@ add_email_address()
fi
done
keyName="$(grep 'pgp_sign_as=' "$muttHome/gpg.rc" | cut -d '=' -f2)"
keyName="$(gpg --list-secret-keys $keyName | grep '.*@.*' | cut -d '<' -f2 | cut -d '<' -f1)"
echo "key name is $keyName"
# I wish it were possible to just echo the password through gpg and not have an unencrypted file at all.
# but either it's not, or I just can't figure out how to do it. So we'll use mktemp and shred.
passwordFile="$(mktemp)"