Bob Mottram 7 年之前
父節點
當前提交
cde6df9dcc
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      tests/check-ssh.sh

+ 3
- 3
tests/check-ssh.sh 查看文件

@@ -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