summaryrefslogtreecommitdiff
path: root/src/password-store.sh
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-05-10 19:37:56 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-05-10 19:37:56 +0200
commit311c98c9140205f32be2720db9261c67da658c4c (patch)
tree62f1c11a5119e34851e37e6ddc8a8daeabe6cf72 /src/password-store.sh
parent1d6ed690232de70c522226315b8b5a0e5c1706c1 (diff)
downloadpass-311c98c9140205f32be2720db9261c67da658c4c.tar.gz
pass-311c98c9140205f32be2720db9261c67da658c4c.tar.bz2
pass-311c98c9140205f32be2720db9261c67da658c4c.zip
edit: Quote editor so tests work in spaced directories.
Diffstat (limited to '')
-rwxr-xr-xsrc/password-store.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/password-store.sh b/src/password-store.sh
index 7ef58bd..140b1bc 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -425,7 +425,7 @@ cmd_edit() {
$GPG -d -o "$tmp_file" "${GPG_OPTS[@]}" "$passfile" || exit 1
action="Edit"
fi
- ${EDITOR:-vi} "$tmp_file"
+ "${EDITOR:-vi}" "$tmp_file"
while ! $GPG -e "${GPG_RECIPIENT_ARGS[@]}" -o "$passfile" "${GPG_OPTS[@]}" "$tmp_file"; do
echo "GPG encryption failed. Retrying."
sleep 1