summaryrefslogtreecommitdiffstats
path: root/.req_pwd.sh
diff options
context:
space:
mode:
Diffstat (limited to '.req_pwd.sh')
-rwxr-xr-x.req_pwd.sh19
1 files changed, 0 insertions, 19 deletions
diff --git a/.req_pwd.sh b/.req_pwd.sh
deleted file mode 100755
index 3a6be86..0000000
--- a/.req_pwd.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh -e
-# A simple wrapper script to deal with situations where pass, password-store, or
-# my gpg key is not available.
-
-pass "$1" && exit
-
-# maybe gpg-agent is acting up, retry after restarting it
-gpg-connect-agent "KILLAGENT" /bye >&2 >/dev/null
-gpg-connect-agent /bye >&2 >/dev/null
-pass "$1" && exit
-
-# if pass fails, request password manually
-stty -echo
-printf "Password: " >&2
-read passwd
-stty echo
-printf "\n" >&2
-
-printf "$passwd"