Removed KEYID variable issue

This commit is contained in:
Brian Zalewski 2023-11-05 02:47:04 +00:00
parent 7be8dab12f
commit be45dcdaf8
2 changed files with 0 additions and 4 deletions

View file

@ -61,8 +61,6 @@ if [ -n "$KEYID" ] && command -v gpg > /dev/null; then
if [ -n "$EXIT_CODE" ]; then
logg info 'Non-zero exit code received when trying to retrieve public user GPG key on hkps://pgp.mit.edu'
gpgconf --kill dirmngr
KEYID="${KEYID^^}"
KEYID="$(echo "$KEYID" | sed 's/^0X/0x/')"
if [ -f "$HOME/.gnupg/public/$KEYID.sig" ]; then
gpg --import "$HOME/.gnupg/public/$KEYID.sig"
fi

View file

@ -27,8 +27,6 @@ if [ -n "$KEYID" ] && command -v gpg > /dev/null; then
fi
KEYID_TRIMMED="$(echo "$KEYID" | sed 's/^0x//')"
if ! gpg --list-secret-keys --keyid-format=long | grep "$KEYID_TRIMMED" > /dev/null; then
LOCAL_KEYID="${KEYID^^}"
LOCAL_KEYID="$(echo "$LOCAL_KEYID" | sed 's/^0X/0x/')"
logg info 'Killing dirmngr instance and reloading daemon with standard-resolver'
sudo pkill dirmngr
dirmngr --daemon --standard-resolver