Fixed user log out when selecting "Close Menu" in dialer

See issue:

https://todo.sr.ht/~mil/sxmo-tickets/117
master
Anjandev Momi 4 years ago
parent f2a3ad47cf
commit 8b87386006
  1. 4
      scripts/modem/sxmo_modemdial.sh

@ -22,13 +22,13 @@ dialmenu() {
grep . | grep . |
sxmo_dmenu_with_kb.sh -l 10 -p Number -c -fn Terminus-20 -i 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="$( echo "$NUMBER" | grep -q "More contacts" && NUMBER="$(
printf %b "Close Menu\n$(sxmo_contacts.sh --all)" | printf %b "Close Menu\n$(sxmo_contacts.sh --all)" |
grep . | grep . |
sxmo_dmenu_with_kb.sh -l 10 -p Number -c -fn Terminus-20 -i 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 -- '- ')" NUMBER="$(echo "$NUMBER" | cut -d: -f1 | tr -d -- '- ')"
echo "$NUMBER" | grep -qE '^[+0-9]+$' || fatalerr "$NUMBER is not a number" echo "$NUMBER" | grep -qE '^[+0-9]+$' || fatalerr "$NUMBER is not a number"

Loading…
Cancel
Save