diff options
author | Tharre <tharre3@gmail.com> | 2017-10-10 10:10:25 +0200 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2017-10-10 10:10:25 +0200 |
commit | 15a244be834df3ca29aabc3023227b3bb89815dd (patch) | |
tree | 7b4bba715df76114947b0f3d43e4b89815a1cdfe | |
parent | ca51aedf382e4a7a293529ada531d576604a05e0 (diff) | |
download | dotfiles-15a244be834df3ca29aabc3023227b3bb89815dd.tar.gz dotfiles-15a244be834df3ca29aabc3023227b3bb89815dd.tar.xz dotfiles-15a244be834df3ca29aabc3023227b3bb89815dd.zip |
Restart gpg-agent properly instead of killing it
-rwxr-xr-x | .req_pwd.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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 |