From cbeaecbef5b67d6ea708d4081268160cf4041a28 Mon Sep 17 00:00:00 2001 From: "Serge E. Hallyn" Date: Mon, 2 Nov 2020 20:31:06 -0600 Subject: [PATCH] sxmo_modemdial.sh: quiet the grep When I try to dial a call from 'more contacts', I get Attempting to dial: +19362396134 Starting call with CALLID: 0 error: invalid call string specified: 'More contacts 0' This is because dialmenu() is getting an extra 'More contacts' prepended to the callid it returns on stdout. Make the grep which is causing that quiet using -q. I'm not sure why this isn't hitting everyone else. Signed-off-by: Serge Hallyn Signed-off-by: Anjandev Momi --- scripts/modem/sxmo_modemdial.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/modem/sxmo_modemdial.sh b/scripts/modem/sxmo_modemdial.sh index 66ff8a9..6ee4f01 100755 --- a/scripts/modem/sxmo_modemdial.sh +++ b/scripts/modem/sxmo_modemdial.sh @@ -22,7 +22,7 @@ dialmenu() { grep . | sxmo_dmenu_with_kb.sh -l 10 -p Number -c -fn Terminus-20 -i )" - echo "$NUMBER" | grep "More contacts" && NUMBER="$( + 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