Getting the error below as I'm sure my syntax is off somehow with the nested conditionals. Basically I don't want to send an empty message to my telegram_bot which throws an error if it detects empty message. The first IF just detects if its NULL which works. But the case on line 32 doesnt.
xxx.sh: line 32: syntax error near unexpected token `)' xxx.sh: line 32: ` *) # contains nothing or only spaces' 26 if [ -z "$message" ]; then 27 echo "Please pipe a message to me!" 28 else 29 case $message in 30 *[!\ ]*) # contains non-space 31 sendTelegram 32 *) # contains nothing or only spaces 33 DO NOTHING... 34 esac 35 fi