diff --git a/scripts/modem/sxmo_modemdial.sh b/scripts/modem/sxmo_modemdial.sh index 6ee4f01..8f5f0b3 100755 --- a/scripts/modem/sxmo_modemdial.sh +++ b/scripts/modem/sxmo_modemdial.sh @@ -22,13 +22,13 @@ dialmenu() { grep . | sxmo_dmenu_with_kb.sh -l 10 -p Number -c -fn Terminus-20 -i )" + echo "$NUMBER" | grep "Close Menu" && kill -9 0 + echo "$NUMBER" | grep -q "More contacts" && NUMBER="$( printf %b "Close Menu\n$(sxmo_contacts.sh --all)" | grep . | sxmo_dmenu_with_kb.sh -l 10 -p Number -c -fn Terminus-20 -i )" - echo "$NUMBER" | grep "Close Menu" && kill -9 0 - NUMBER="$(echo "$NUMBER" | cut -d: -f1 | tr -d -- '- ')" echo "$NUMBER" | grep -qE '^[+0-9]+$' || fatalerr "$NUMBER is not a number"