Fixed daemon name checking

This commit is contained in:
Deon George 2020-08-02 17:53:03 +10:00
parent c4f4769bcf
commit 07d781a18d

View File

@ -21,7 +21,7 @@ if [ -n ${SBBS_PID} ]; then
NAME=$(cat /proc/${SBBS_PID}/cmdline |awk -F\00 '{print $1}')
#echo "* SBBS NAME [${NAME}]"
if [ ${NAME} != 'sbbs' ]; then
if [ "${NAME}" != "sbbs" ]; then
echo "! Name not matching? [${NAME}]"
break;
fi