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 3a0c8bae77a15976f6b74ed92d57127f7d6cdca6
parent 6ecdfe3844eec6e3d3f2d04c506c75114d97a5ec
Author: rupa <rupa@lrrr.us>
Date:   Wed, 12 Sep 2012 03:38:45 +0200

Don't quote ${EDITOR:-vi}

Attached is a trivial patch that removes the quotes from the line that
invokes $EDITOR. It's perfectly cromulent to set $EDITOR to something
with spaces in it, so when we evaluate this one we want it evaluated
bare. For example security nerds might want EDITOR='vim -n' if they
are scared of swap files, and that breaks if we quote there.

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

diff --git a/src/password-store.sh b/src/password-store.sh @@ -226,7 +226,7 @@ case "$command" in fi action="Edited" fi - "${EDITOR:-vi}" "$tmp_file" + ${EDITOR:-vi} "$tmp_file" while ! gpg -q -e -r "$ID" -o "$passfile" --yes "$tmp_file"; do echo "GPG encryption failed. Retrying." sleep 1