diff options
| author | Tharre <tharre3@gmail.com> | 2017-06-13 15:26:07 +0200 | 
|---|---|---|
| committer | Tharre <tharre3@gmail.com> | 2017-06-13 15:26:07 +0200 | 
| commit | 5f74365bfd3fe6a06db2f641816311e035442efe (patch) | |
| tree | e8bde171e8f6684225e144a44476879f877a1911 | |
| parent | 82eec162d348c13d0b2a2672f4238aef38713059 (diff) | |
| download | dotfiles-5f74365bfd3fe6a06db2f641816311e035442efe.tar.gz dotfiles-5f74365bfd3fe6a06db2f641816311e035442efe.tar.xz dotfiles-5f74365bfd3fe6a06db2f641816311e035442efe.zip  | |
Workaround when gpg-agent is broken for req_pwd
| -rwxr-xr-x | .req_pwd.sh | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/.req_pwd.sh b/.req_pwd.sh index bce131b..44bb634 100755 --- a/.req_pwd.sh +++ b/.req_pwd.sh @@ -4,6 +4,10 @@  pass "$1" && exit +# maybe gpg-agent is acting up, retry after killing it +killall gpg-agent >&2 +pass "$1" && exit +  # if pass fails, request password manually  stty -echo  printf "Password: " >&2  | 
