From 2a925ed1a012266cf20dbd60519fc7c36aa7380f Mon Sep 17 00:00:00 2001 From: Miles Alan Date: Sun, 14 Jun 2020 09:56:55 -0500 Subject: [PATCH] Allow calling numbers with + prefix --- scripts/modem/sxmo_modemcall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/modem/sxmo_modemcall.sh b/scripts/modem/sxmo_modemcall.sh index a2c9e10..4c88be7 100755 --- a/scripts/modem/sxmo_modemcall.sh +++ b/scripts/modem/sxmo_modemcall.sh @@ -73,7 +73,7 @@ dialmenu() { echo "$NUMBER" | grep "Close Menu" && kill 0 NUMBER="$(echo "$NUMBER" | awk -F' ' '{print $NF}' | tr -d -)" - echo "$NUMBER" | grep -qE '^[0-9]+$' || err "$NUMBER is not a number" + echo "$NUMBER" | grep -qE '^[+0-9]+$' || err "$NUMBER is not a number" echo "Attempting to dial: $NUMBER" >&2 VID="$(