diff --git a/scripts/modem/sxmo_modemtext.sh b/scripts/modem/sxmo_modemtext.sh index 36e3c15..97d32f7 100755 --- a/scripts/modem/sxmo_modemtext.sh +++ b/scripts/modem/sxmo_modemtext.sh @@ -62,7 +62,11 @@ choosenumbermenu() { } sendnewtextmenu() { - NUMBER="$(choosenumbermenu)" + if [ -n "$1" ]; then + NUMBER="$1" + else + NUMBER="$(choosenumbermenu)" + fi # Compose first version of msg TEXT="$(editmsg "$NUMBER" 'Enter text message here')" sendtextmenu "$NUMBER" "$TEXT"