protections

This commit is contained in:
qo-op 2021-07-08 06:29:37 +02:00
parent e4fcb4bbbf
commit fed983b5aa
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,7 @@ CMD=$(echo "$TEXT" | awk '{print toupper($1)}')
# SWITCH CASE DEPENDING ON SMS TEXT FIRST WORD
########################################################################
echo "COMMAND = $CMD"
[[ "$CMD" == ""]] && exit 1
# Handle commands
case "$CMD" in
@ -94,6 +95,7 @@ case "$CMD" in
echo "${MESSAGE}"
fi
## OK CMD=GROUPE suivi de message
[[ ${phone} != $SMSADMIN ]] && [[ ! -d /home/${YOU}/.zen/SMS/GUILDES/${CMD} ]] && echo "AUCUNE GUILDE ${CMD} - EXIT -" && exit 0
$MY_PATH/sms/GUILDE.sh "$phone" "$CMD" > /home/${YOU}/.zen/SMS/debug.log
;;
esac