Fixed daemon name checking

This commit is contained in:
Deon George 2020-08-02 17:52:09 +10:00
parent adc38bc7d4
commit 6a13bd0be7

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