Bob Mottram 7 年 前
コミット
cde6df9dcc
共有1 個のファイルを変更した3 個の追加3 個の削除を含む
  1. 3
    3
      tests/check-ssh.sh

+ 3
- 3
tests/check-ssh.sh ファイルの表示

45
         fi
45
         fi
46
         ;;
46
         ;;
47
     installed)
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
 	else
52
 	else
53
 	    exit 1
53
 	    exit 1