password-store

Simple password manager using gpg and ordinary unix directories
git clone https://git.zx2c4.com/password-store
Log | Files | Refs | README | LICENSE

commit 8b326ddc8db2e1271917ef47470a4b2cead7ceff
parent 1057be995c9c850a39eb1044a264168be052064e
Author: Jason A. Donenfeld <Jason@zx2c4.com>
Date:   Wed, 24 Dec 2014 11:38:34 +0100

Keep track of correct TTY for pinentry at start of script, in case we take over stdin later.

Diffstat:
Msrc/password-store.sh | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/password-store.sh b/src/password-store.sh @@ -8,6 +8,7 @@ set -o pipefail GPG_OPTS=( "--quiet" "--yes" "--compress-algo=none" ) GPG="gpg" +export GPG_TTY="${GPG_TTY:-$(tty 2>/dev/null)}" which gpg2 &>/dev/null && GPG="gpg2" [[ -n $GPG_AGENT_INFO || $GPG == "gpg2" ]] && GPG_OPTS+=( "--batch" "--use-agent" )