From 15a244be834df3ca29aabc3023227b3bb89815dd Mon Sep 17 00:00:00 2001 From: Tharre Date: Tue, 10 Oct 2017 10:10:25 +0200 Subject: Restart gpg-agent properly instead of killing it --- .req_pwd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.req_pwd.sh') diff --git a/.req_pwd.sh b/.req_pwd.sh index 44bb634..28518b7 100755 --- a/.req_pwd.sh +++ b/.req_pwd.sh @@ -4,8 +4,8 @@ pass "$1" && exit -# maybe gpg-agent is acting up, retry after killing it -killall gpg-agent >&2 +# maybe gpg-agent is acting up, retry after restarting it +gpg-connect-agent reloadagent /bye >&2 pass "$1" && exit # if pass fails, request password manually -- cgit v1.2.3-70-g09d2