Update file run_onchange_before_91-configure-gpg.tmpl

This commit is contained in:
Brian Zalewski 2023-01-05 02:52:38 +00:00
parent fac53b54f3
commit a8b0f6c9f5

View file

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