aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-06-29 01:44:41 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-06-29 01:45:54 +0200
commit9ed79aacd5ef54b9f19f0b91c000f13f46ec76ab (patch)
tree231d6182d7871ed10b4169670b4d7d577a4a2e13 /src
parentkeepassx2pass: Substitute empty string for None (diff)
downloadpassword-store-9ed79aacd5ef54b9f19f0b91c000f13f46ec76ab.tar.xz
password-store-9ed79aacd5ef54b9f19f0b91c000f13f46ec76ab.zip
Allow options in EDITOR variable
This is required by most graphical editors, as the shell command they provide needs to be told to wait until the file has been closed. This reverts '311c98c9140205f32be2720db9261c67da658c4c'. We thus use PATH so that the tests still pass in directories with spaces.
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 e68384b..8c6c9c5 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