aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTad Fisher <tad@simple.com>2017-03-18 23:56:24 -0700
committerTad Fisher <tad@simple.com>2017-03-18 23:56:24 -0700
commit8367284176c086d3bf203923bbd0abd9c0786e33 (patch)
tree263212762825a45ded99a2ee645d8b5984b00885
parent72373e86cea699c5fb69cfff436e390186cc9e4e (diff)
downloadpass-otp-8367284176c086d3bf203923bbd0abd9c0786e33.tar.gz
pass-otp-8367284176c086d3bf203923bbd0abd9c0786e33.zip
Fix overwrite prompt test
-rwxr-xr-xtest/insert.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/insert.t b/test/insert.t
index e04914e..dbd6e2a 100755
--- a/test/insert.t
+++ b/test/insert.t
@@ -18,7 +18,7 @@ test_expect_success 'Prompts before overwriting key URI' '
test_pass_init &&
"$PASS" otp insert "$uri1" passfile &&
- test_faketty "echo n | $PASS otp insert $uri2 passfile" &&
+ test_faketty "$PASS" otp insert "$uri2" passfile < <(echo n) &&
[[ $("$PASS" show passfile) == "$uri1" ]]
'