Fixes a bug where the modem number isn't correctly identified

master
Jonathan Hodgson 3 years ago
parent 271c253178
commit 9fd64e9bb2
  1. 2
      bin/.bin/modem/sendSMS

@ -29,7 +29,7 @@ edit="false"
# Assume we want the first modem
# can be overwritten by the -m option
modem="$(mmcli -L | grep -qoE 'Modem\/[0-9]+' | head -n 1 | cut -d'/' -f2)"
modem="$(mmcli -L | grep -oE 'Modem\/[0-9]+' | head -n 1 | cut -d'/' -f2)"
# Iterate over options breaking -ab into -a -b when needed and --foo=bar into

Loading…
Cancel
Save