From 719b8131576d21f273fb4120d4003a0bf0e8c800 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 6 May 2018 10:33:53 +0100 Subject: [PATCH] Two separate conditions --- tests/check-ssh.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/check-ssh.sh b/tests/check-ssh.sh index 011cf18e..ef65c353 100644 --- a/tests/check-ssh.sh +++ b/tests/check-ssh.sh @@ -47,8 +47,12 @@ case $1 in installed) OPENSSH_SERVER=$(dpkg -s openssh-server | grep -i "Status:.*install.*ok.*installed" | wc -l) OPENSSH_CLIENT=$(dpkg -s openssh-client | grep -i "Status:.*install.*ok.*installed" | wc -l) - if [ ${OPENSSH_SERVER} -eq 1 -a ${OPENSSH_CLIENT} -eq 1 ]; then - : + if [ ${OPENSSH_SERVER} -eq 1 ]; then + if [ ${OPENSSH_CLIENT} -eq 1 ]; then + : + else + exit 1 + fi else exit 1 fi