Update file run_onchange_before_91-configure-gpg.tmpl

This commit is contained in:
Brian Zalewski 2023-01-05 02:50:05 +00:00
parent 4f0eb7e9fb
commit cc6c8478e9

View file

@ -32,8 +32,8 @@ if [ -n "$KEYID" ] && command -v gpg > /dev/null; then
gpgconf --kill dirmngr gpgconf --kill dirmngr
KEYID="${KEYID^^}" KEYID="${KEYID^^}"
KEYID="$(echo "$KEYID" | sed 's/^0X/0x/')" KEYID="$(echo "$KEYID" | sed 's/^0X/0x/')"
if [ -f "$HOME/.gnupg/$KEYID.key" ]; then if [ -f "$HOME/.gnupg/public/$KEYID.key" ]; then
gpg --import "$HOME/.gnupg/$KEYID.key" gpg --import "$HOME/.gnupg/public/$KEYID.key"
fi fi
else else
logg success 'Successfully imported configured public user GPG key' logg success 'Successfully imported configured public user GPG key'