diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-04-24 11:32:32 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-04-24 11:34:19 +0200 |
commit | 9d92e5bca1543be40270c288feb546df0382afee (patch) | |
tree | 9b0941cf4fd3a6b221397ea5bec6779e2d794d2b /tests/t0060-rm-tests.sh | |
parent | bdc3bacff7e149933275fa4ecbc5644773ca12c5 (diff) | |
download | pass-9d92e5bca1543be40270c288feb546df0382afee.tar.gz pass-9d92e5bca1543be40270c288feb546df0382afee.tar.bz2 pass-9d92e5bca1543be40270c288feb546df0382afee.zip |
Don't prompt for questions when stdin is not a tty.
Diffstat (limited to 'tests/t0060-rm-tests.sh')
-rwxr-xr-x | tests/t0060-rm-tests.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/t0060-rm-tests.sh b/tests/t0060-rm-tests.sh index fc38b3d..29fa34a 100755 --- a/tests/t0060-rm-tests.sh +++ b/tests/t0060-rm-tests.sh @@ -7,7 +7,7 @@ cd "$(dirname "$0")" test_expect_success 'Test "rm" command' ' "$PASS" init $KEY1 && "$PASS" generate cred1 43 && - echo "y" | "$PASS" rm cred1 && + "$PASS" rm cred1 && [[ ! -e $PASSWORD_STORE_DIR/cred1.gpg ]] ' |