diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-09-21 17:23:08 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-09-21 17:23:08 +0200 |
commit | 9dcae25e1aa627347fccab133617412628f07d7c (patch) | |
tree | 3478c9424160ce00ee2c303431d9667417307099 /src | |
parent | 9beb5f8b0674bb1502b92bb15d55aecf2e37b45d (diff) | |
download | pass-9dcae25e1aa627347fccab133617412628f07d7c.tar.gz pass-9dcae25e1aa627347fccab133617412628f07d7c.tar.bz2 pass-9dcae25e1aa627347fccab133617412628f07d7c.zip |
Add support for PASSWORD_STORE_KEY env var.
Diffstat (limited to '')
-rwxr-xr-x | src/password-store.sh | 4 |
1 files changed, 3 insertions, 1 deletions
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." |