Bob Mottram hace 7 años
padre
commit
cde6df9dcc
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3
    3
      tests/check-ssh.sh

+ 3
- 3
tests/check-ssh.sh Ver fichero

@@ -45,9 +45,9 @@ case $1 in
45 45
         fi
46 46
         ;;
47 47
     installed)
48
-	OPENSSH_SERVER=`dpkg -s openssh-server | grep -i "Status:.*install.*ok.*installed" | wc -l`
49
-	OPENSSH_CLIENT=`dpkg -s openssh-client | grep -i "Status:.*install.*ok.*installed" | wc -l`
50
-	if [ ${OPENSSH_SERVER} -eq 1 -a ${OPENSSH_CLIENT} -eq 1 ];then
48
+	OPENSSH_SERVER=$(dpkg -s openssh-server | grep -i "Status:.*install.*ok.*installed" | wc -l)
49
+	OPENSSH_CLIENT=$(dpkg -s openssh-client | grep -i "Status:.*install.*ok.*installed" | wc -l)
50
+	if [ ${OPENSSH_SERVER} -eq 1 -a ${OPENSSH_CLIENT} -eq 1 ]; then
51 51
 	    :
52 52
 	else
53 53
 	    exit 1