From 8b3bb8773618ac43d832ae8b17a9f93c8e110e47 Mon Sep 17 00:00:00 2001 From: "Kevin C." Date: Thu, 15 Oct 2015 16:48:34 +0200 Subject: [PATCH] =?UTF-8?q?Emp=C3=AAcher=20l'interpr=C3=A9tation=20des=20s?= =?UTF-8?q?ymboles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Les doubles quotes empêchent l'interprétation des symboles (si le SMS envoyé commence par une astérisque "*" par exemple) --- send-notification.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/send-notification.sh b/send-notification.sh index b139f86..a511e6d 100644 --- a/send-notification.sh +++ b/send-notification.sh @@ -57,7 +57,7 @@ else # Message lu de STDIN do MESSAGE_TO_SEND="$MESSAGE_TO_SEND$line$NEWLINE_CHAR" 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 FINAL_MESSAGE_TO_SEND="$MESSAGE_HEADER$MESSAGE_TO_SEND$MESSAGE_FOOTER" # Assemble header, message et footer