From 9fd64e9bb275ec0c2e4b7ce0998150727fe80ef6 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Mon, 15 Feb 2021 21:36:37 +0000 Subject: [PATCH] Fixes a bug where the modem number isn't correctly identified --- bin/.bin/modem/sendSMS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/.bin/modem/sendSMS b/bin/.bin/modem/sendSMS index ac5c3077..d63c7145 100755 --- a/bin/.bin/modem/sendSMS +++ b/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