Fix new message count

master
Jonathan Hodgson 4 years ago
parent 0b22abd4b4
commit c88b6fa18a
  1. 2
      bin/.bin/modem/checkSMS

@ -88,7 +88,7 @@ done
ids="$( mmcli -m "$modem" --messaging-list-sms |
grep -Eo '/SMS/[0-9]+ \(received\)' | grep -Eo '[0-9]+' )"
count="$(echo -n "$ids" | wc -l)"
count="$(echo "$ids" | wc -l)"
[ "$count" -eq 0 ] && return

Loading…
Cancel
Save