From dc08cbb6c706ceceff223e015c7c5c3d2963d31c Mon Sep 17 00:00:00 2001 From: Michel Oosterhof Date: Sat, 1 Jul 2017 19:33:45 +0200 Subject: [PATCH] handle undefined variables --- bin/cowrie | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/cowrie b/bin/cowrie index e0de9d4e..d71cc888 100755 --- a/bin/cowrie +++ b/bin/cowrie @@ -63,20 +63,20 @@ cowrie_start() { TWISTEDARGS="${DAEMONIZE} ${XARGS} --umask 0077 --pidfile ${PIDFILE}" # For Docker log to stdout, for non-Docker log to file - if [ $DOCKER = "yes" ] + if [ "$DOCKER" = "yes" ] then TWISTEDARGS="${TWISTEDARGS} -l -" else TWISTEDARGS="${TWISTEDARGS} -l log/cowrie.log" fi - if [ $VIRTUALENV_ENABLED = "yes" ] + if [ "$VIRTUALENV_ENABLED" = "yes" ] then activate_venv "cowrie-env" fi echo "Starting cowrie: [twistd ${TWISTEDARGS} cowrie ${COWRIEARGS}]..." - if [ $AUTHBIND_ENABLED = "no" ] + if [ "$AUTHBIND_ENABLED" = "no" ] then twistd ${TWISTEDARGS} ${COWRIEARGS} cowrie else