aboutsummaryrefslogtreecommitdiffstatshomepage
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
parentreencryption: Properly escape input to sed (diff)
downloadpassword-store-311c98c9140205f32be2720db9261c67da658c4c.tar.xz
password-store-311c98c9140205f32be2720db9261c67da658c4c.zip
edit: Quote editor so tests work in spaced directories.
-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