Fixes a bug where the modem number isn't correctly identified
This commit is contained in:
parent
271c253178
commit
9fd64e9bb2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue