summaryrefslogtreecommitdiff
path: root/e3372-readsms.sh
diff options
context:
space:
mode:
Diffstat (limited to 'e3372-readsms.sh')
-rw-r--r--e3372-readsms.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/e3372-readsms.sh b/e3372-readsms.sh
index 2371de9..fbf44b6 100644
--- a/e3372-readsms.sh
+++ b/e3372-readsms.sh
@@ -9,8 +9,6 @@ curl -s -X POST "http://$MODEM_IP/api/sms/sms-list" -H "Cookie: $COOKIE" -H "__R
#cat modem_status.xml
-message=$(grep -r Content modem_status.xml | sed -e 's/<[^>]*>//g')
-
-#message=$(echo $message | sed -e 's/^[[:space:]]*//')
+message=$(grep -r Content modem_status.xml | sed -e 's/<[^>]*>//g' | sed "s/^[ \t]*/\n/g")
echo "$message\n"