From 9dcae25e1aa627347fccab133617412628f07d7c Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 21 Sep 2012 17:23:08 +0200 Subject: Add support for PASSWORD_STORE_KEY env var. --- src/password-store.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/password-store.sh') diff --git a/src/password-store.sh b/src/password-store.sh index f137f55..21f8fe4 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -175,7 +175,9 @@ case "$command" in ;; esac -if ! [[ -f $ID ]]; then +if [[ -n $PASSWORD_STORE_KEY ]]; then + ID="$PASSWORD_STORE_KEY" +elif ! [[ -f $ID ]]; then echo "You must run:" echo " $program init your-gpg-id" echo "before you may use the password store." -- cgit v1.2.3-59-g8ed1b