summaryrefslogtreecommitdiff
path: root/regress/agent-timeout.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regress/agent-timeout.sh')
-rw-r--r--regress/agent-timeout.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/regress/agent-timeout.sh b/regress/agent-timeout.sh
index 28b1be02..01d6580a 100644
--- a/regress/agent-timeout.sh
+++ b/regress/agent-timeout.sh
@@ -26,7 +26,7 @@ else
trace "sleeping 2*${TIMEOUT} seconds"
sleep ${TIMEOUT}
sleep ${TIMEOUT}
- ${SSHADD} -l 2> /dev/null | grep -q 'The agent has no identities.'
+ ${SSHADD} -l 2> /dev/null | grep 'The agent has no identities.' >/dev/null
if [ $? -ne 0 ]; then
fail "ssh-add -l still returns keys after timeout"
fi