avoid admin sms message if empty (used to create new GUILDE)
This commit is contained in:
parent
ae572efc4f
commit
80c0e35aa4
@ -186,7 +186,7 @@ if [[ $SCORE -ge 4 || ${phone} == $SMSADMIN ]]; then
|
||||
mkdir -p /home/${YOU}/.zen/SMS/GUILDES/${guilde}/OUTPUT/
|
||||
|
||||
## PREPARATION DU MESSAGE POUR LA GUILDE
|
||||
[[ ${message} != "" ]] && echo "#!/bin/bash
|
||||
[[ ${message} != "${guilde}" && ${message} != "" ]] && echo "#!/bin/bash
|
||||
sudo gammu sendsms TEXT \"_PHONE_\" -text \"[${xzuid}/${SCORE}/${guilde}] ${message}\"" > /home/${YOU}/.zen/SMS/GUILDES/${guilde}/OUTPUT/$(date -u +%s%N | cut -b1-13).tosend.sh
|
||||
echo "ADMIN GUILDE [${xzuid}/${SCORE}/${guilde}] ${message}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user