From fc26b0c95959215c11498d2e7f6d6d3f300c5ed0 Mon Sep 17 00:00:00 2001 From: Karanbir Singh Date: Nov 09 2012 09:50:33 +0000 Subject: the if needs a then --- diff --git a/tests/p_openssh/sshd_user_login.sh b/tests/p_openssh/sshd_user_login.sh index b637664..78b64bb 100755 --- a/tests/p_openssh/sshd_user_login.sh +++ b/tests/p_openssh/sshd_user_login.sh @@ -8,7 +8,7 @@ touch /home/sshtest/ssh_test_file t_Log "Running $0 - SSH Interactive user login test." -if [ `egrep "^PasswordAuthentication" /etc/ssh/sshd_config | tail -n1 | egrep "\syes$" | wc -l ` -gt 0 ] +if [ `egrep "^PasswordAuthentication" /etc/ssh/sshd_config | tail -n1 | egrep "\syes$" | wc -l ` -gt 0 ]; then ./tests/p_openssh/_helper_sshd_user_login.expect | grep "ssh_test_file" > /dev/null 2>&1 t_CheckExitStatus $? userdel -rf sshtest