summaryrefslogtreecommitdiffstats
path: root/.req_pwd.sh
diff options
context:
space:
mode:
Diffstat (limited to '.req_pwd.sh')
-rwxr-xr-x.req_pwd.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/.req_pwd.sh b/.req_pwd.sh
index 78a98a1..3a6be86 100755
--- a/.req_pwd.sh
+++ b/.req_pwd.sh
@@ -5,7 +5,8 @@
pass "$1" && exit
# maybe gpg-agent is acting up, retry after restarting it
-killall gpg-agent >&2
+gpg-connect-agent "KILLAGENT" /bye >&2 >/dev/null
+gpg-connect-agent /bye >&2 >/dev/null
pass "$1" && exit
# if pass fails, request password manually