fix a notification bug when sms come from whitespace content number

We quote the sms path on notificationwrite to prevent buggy commands.

mn: This patch fixes texts from numbers like "CREDIT AGRICOLE"

Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
This commit is contained in:
Reed Wade 2020-10-27 20:25:34 +01:00 committed by Anjandev Momi
parent e8e4c77a51
commit 1e00b72d90

View file

@ -114,7 +114,7 @@ checkfornewtexts() {
sxmo_notificationwrite.sh \
random \
"st -e tail -n9999 -f $LOGDIR/$NUM/sms.txt" \
"st -e tail -n9999 -f '$LOGDIR/$NUM/sms.txt'" \
"$LOGDIR/$NUM/sms.txt" \
"Message - $(sxmo_contacts.sh | grep -E "^\\$NUM"): $TEXT"