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

This commit is contained in:
Jonathan Hodgson 2021-02-15 21:36:37 +00:00
parent 271c253178
commit 9fd64e9bb2

View file

@ -29,7 +29,7 @@ edit="false"
# Assume we want the first modem # Assume we want the first modem
# can be overwritten by the -m option # 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 # Iterate over options breaking -ab into -a -b when needed and --foo=bar into