summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsrc/password-store.sh2
-rwxr-xr-xtests/t0200-edit-tests.sh3
2 files changed, 3 insertions, 2 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
diff --git a/tests/t0200-edit-tests.sh b/tests/t0200-edit-tests.sh
index 1dc125a..d8d7b64 100755
--- a/tests/t0200-edit-tests.sh
+++ b/tests/t0200-edit-tests.sh
@@ -8,7 +8,8 @@ test_expect_success 'Test "edit" command' '
"$PASS" init $KEY1 &&
"$PASS" generate cred1 90 &&
export FAKE_EDITOR_PASSWORD="big fat fake password" &&
- export EDITOR="$TEST_HOME/fake-editor-change-password.sh" &&
+ export PATH="$TEST_HOME:$PATH"
+ export EDITOR="fake-editor-change-password.sh" &&
"$PASS" edit cred1 &&
[[ $("$PASS" show cred1) == "$FAKE_EDITOR_PASSWORD" ]]
'
0 to 1.6.1dependabot[bot]2-3/+3 2021-01-09Bump github.com/google/uuid from 1.1.2 to 1.1.4dependabot[bot]2-3/+3 2021-01-09Bump github.com/emersion/go-message from 0.14.0 to 0.14.1 (#42)dependabot[bot]2-3/+3 2020-11-28Bump github.com/emersion/go-message from 0.13.0 to 0.14.0 (#38)dependabot[bot]2-3/+9 2020-11-28Bump github.com/google/go-cmp from 0.5.2 to 0.5.4 (#37)dependabot[bot]2-3/+3 2020-11-23Fix release.ymlv0.5.2René 'Necoro' Neumann1-3/+10 2020-11-23Prepare v0.5.2René 'Necoro' Neumann3-3/+8 2020-11-20Bump github.com/gabriel-vasile/mimetype from 1.1.1 to 1.1.2dependabot[bot]2-3/+3 2020-11-04Clean dependabot.ymlRené 'Necoro' Neumann1-4/+0