From e846f0602befa0a410b0310b253f24c21247e8a2 Mon Sep 17 00:00:00 2001 From: qo-op Date: Thu, 8 Jul 2021 06:31:26 +0200 Subject: [PATCH] CMD empty case --- sms_received.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sms_received.sh b/sms_received.sh index 9b2ad32..323f58d 100755 --- a/sms_received.sh +++ b/sms_received.sh @@ -72,7 +72,7 @@ CMD=$(echo "$TEXT" | awk '{print toupper($1)}') # SWITCH CASE DEPENDING ON SMS TEXT FIRST WORD ######################################################################## echo "COMMAND = $CMD" -[[ "$CMD" == ""]] && exit 1 +[[ ! $CMD ]] && exit 1 # Handle commands case "$CMD" in