Empêcher l'interprétation des symboles
Les doubles quotes empêchent l'interprétation des symboles (si le SMS envoyé commence par une astérisque "*" par exemple)
This commit is contained in:
parent
5533d15c5b
commit
8b3bb87736
@ -57,7 +57,7 @@ else # Message lu de STDIN
|
|||||||
do
|
do
|
||||||
MESSAGE_TO_SEND="$MESSAGE_TO_SEND$line$NEWLINE_CHAR"
|
MESSAGE_TO_SEND="$MESSAGE_TO_SEND$line$NEWLINE_CHAR"
|
||||||
done
|
done
|
||||||
MESSAGE_TO_SEND=$(echo $MESSAGE_TO_SEND | sed 's/'$NEWLINE_CHAR'$//') # Retire le dernier saut de ligne
|
MESSAGE_TO_SEND=$(echo "$MESSAGE_TO_SEND" | sed 's/'$NEWLINE_CHAR'$//') # Retire le dernier saut de ligne
|
||||||
fi
|
fi
|
||||||
|
|
||||||
FINAL_MESSAGE_TO_SEND="$MESSAGE_HEADER$MESSAGE_TO_SEND$MESSAGE_FOOTER" # Assemble header, message et footer
|
FINAL_MESSAGE_TO_SEND="$MESSAGE_HEADER$MESSAGE_TO_SEND$MESSAGE_FOOTER" # Assemble header, message et footer
|
||||||
|
Loading…
Reference in New Issue
Block a user