SMS messages should now print properly to files with wierd chars

This commit is contained in:
Jonathan Hodgson 2021-04-20 14:52:54 +01:00
parent 0d13928595
commit 8622794068

View file

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