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>
master
Reed Wade 4 years ago committed by Anjandev Momi
parent e8e4c77a51
commit 1e00b72d90
  1. 2
      scripts/modem/sxmo_modemmonitor.sh

@ -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"

Loading…
Cancel
Save