]> git.phdru.name Git - dotfiles.git/blobdiff - lib/config/gpg-agent-stop
Update configs after upgrading to Debian 9 "stretch"
[dotfiles.git] / lib / config / gpg-agent-stop
index 33ed837d84ccae3a8b6843bb6c5d2e3c46b203f5..d1b6c672d0fd08bfe489870b1fc0de13bef259e7 100644 (file)
@@ -1,6 +1 @@
-if test -f "$HOME"/.gnupg/agent-info &&
-      kill -0 `head -1 "$HOME"/.gnupg/agent-info | cut -d: -f 2` 2>/dev/null; then
-   kill `head -1 "$HOME"/.gnupg/agent-info | cut -d: -f 2`
-else
-   echo GPG agent is not running >&2
-fi
+gpgconf --kill gpg-agent