From 3b6d448718a80e9a4485e7ca17da46ecf7ec542c Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Tue, 11 Jul 2023 06:39:01 +0000 Subject: [PATCH] Latest --- .../universal/run_onchange_before_91-configure-gpg.sh.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home/.chezmoiscripts/universal/run_onchange_before_91-configure-gpg.sh.tmpl b/home/.chezmoiscripts/universal/run_onchange_before_91-configure-gpg.sh.tmpl index 0001ca55..171bd227 100644 --- a/home/.chezmoiscripts/universal/run_onchange_before_91-configure-gpg.sh.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_before_91-configure-gpg.sh.tmpl @@ -30,7 +30,8 @@ if [ -n "$KEYID" ] && command -v gpg > /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 || logg error 'Failed to launch dirmngr with standard-resolver' + sudo pkill dirmngr + dirmngr --daemon --standard-resolver if [ -f "$HOME/.gnupg/public/$KEYID.sig" ]; then gpg --import "$HOME/.gnupg/public/$KEYID.sig" else