m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src
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
parent1d6ed690232de70c522226315b8b5a0e5c1706c1 (diff)
edit: Quote editor so tests work in spaced directories.
Diffstat (limited to 'src')
-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