~mil/sxmo-utils

8b873860066e43eb5ceb10be4599bca88de6d0ac — Anjandev Momi 2 years ago f2a3ad4
Fixed user log out when selecting "Close Menu" in dialer

See issue:

https://todo.sr.ht/~mil/sxmo-tickets/117
1 files changed, 2 insertions(+), 2 deletions(-)

M scripts/modem/sxmo_modemdial.sh
M scripts/modem/sxmo_modemdial.sh => scripts/modem/sxmo_modemdial.sh +2 -2
@@ 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"