Show one line in previewing text message to edit

master
Julian P Samaroo 4 years ago committed by Miles Alan
parent 93de0d4d84
commit bbdf195090
  1. 2
      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

Loading…
Cancel
Save