From 9d92e5bca1543be40270c288feb546df0382afee Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 24 Apr 2014 11:32:32 +0200 Subject: Don't prompt for questions when stdin is not a tty. --- tests/t0060-rm-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/t0060-rm-tests.sh') 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 ]] ' -- cgit v1.2.3