From 1e00b72d909ef8bf8ec582f6f15bfc1493ac3f63 Mon Sep 17 00:00:00 2001 From: Reed Wade Date: Tue, 27 Oct 2020 20:25:34 +0100 Subject: [PATCH] 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 Signed-off-by: Anjandev Momi --- scripts/modem/sxmo_modemmonitor.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/modem/sxmo_modemmonitor.sh b/scripts/modem/sxmo_modemmonitor.sh index e0141b2..3ecf57e 100755 --- a/scripts/modem/sxmo_modemmonitor.sh +++ b/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"