SMS messages should now print properly to files with wierd chars

Jonathan Hodgson 4 years ago
parent 631837681a
commit 056611b014
  1. 10
      bin/.bin/modem/checkSMS

@ -65,11 +65,11 @@ echo "$ids" | while read -r id; do
# Store the message in the log file # Store the message in the log file
echo "RECIEVED" echo "RECIEVED"
echo "SENDER: $number" >> $log echo "SENDER: $number" >> "$log"
echo "TIME: $(date -d "$time")" >> $log echo "TIME: $(date -d "$time")" >> "$log"
echo "----" >> $log echo "----" >> "$log"
echo -e "$text" >> $log echo -e "$text" >> "$log"
printf '\00\n' >> $log printf '\00\n' >> "$log"
mmcli -m "$modem" --messaging-delete-sms="$id" mmcli -m "$modem" --messaging-delete-sms="$id"
done done

Loading…
Cancel
Save