X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=lib%2Fconfig%2Fgpg-agent-stop;h=d1b6c672d0fd08bfe489870b1fc0de13bef259e7;hb=6fd72eb67de65b4ce4c3cf46e3390e7b9cc4a83e;hp=33ed837d84ccae3a8b6843bb6c5d2e3c46b203f5;hpb=f46bd4d41cc7f243bc8a321effee5200aa69e709;p=dotfiles.git diff --git a/lib/config/gpg-agent-stop b/lib/config/gpg-agent-stop index 33ed837..d1b6c67 100644 --- a/lib/config/gpg-agent-stop +++ b/lib/config/gpg-agent-stop @@ -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