This commit is contained in:
Bob Mottram 2018-05-06 10:29:23 +01:00
parent 64060a4a10
commit cde6df9dcc
1 changed files with 3 additions and 3 deletions

View File

@ -45,9 +45,9 @@ case $1 in
fi fi
;; ;;
installed) installed)
OPENSSH_SERVER=`dpkg -s openssh-server | grep -i "Status:.*install.*ok.*installed" | wc -l` 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` 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 -a ${OPENSSH_CLIENT} -eq 1 ]; then
: :
else else
exit 1 exit 1