From bbdf19509035722ed6ab93823b3c61f49f6f2d5f Mon Sep 17 00:00:00 2001 From: Julian P Samaroo Date: Sat, 29 Aug 2020 10:45:44 -0500 Subject: [PATCH] Show one line in previewing text message to edit --- scripts/modem/sxmo_modemtext.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/modem/sxmo_modemtext.sh b/scripts/modem/sxmo_modemtext.sh index 0b62a3d..af20fc6 100755 --- a/scripts/modem/sxmo_modemtext.sh +++ b/scripts/modem/sxmo_modemtext.sh @@ -75,7 +75,7 @@ sendtextmenu() { while true do CONFIRM="$( - printf %b "Edit Message ($TEXT)\nSend to → $NUMBER\nCancel" | + printf %b "Edit Message ($(echo "$TEXT" | head -n1))\nSend to → $NUMBER\nCancel" | menu dmenu -c -idx 1 -p "Confirm" -fn "Terminus-20" -l 10 )" echo "$CONFIRM" | grep -E "^Send" && sendmsg "$NUMBER" "$TEXT" && exit 0