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

Jonathan Hodgson 3 years ago
parent 069bc21297
commit 14d316e081
  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