sxmo_modemtext.sh - use variable name $CONTACT rather then $TDIR

master
Miles Alan 4 years ago
parent a8910cb2c6
commit 4362eacde2
  1. 6
      scripts/modem/sxmo_modemtext.sh

@ -96,9 +96,9 @@ main() {
# E.g. only display logfiles for directories that exist and join w contact name
ENTRIES="$(
printf %b "Close Menu\nSend a Text\n";
sxmo_contacts.sh | while read -r TDIR; do
[ -d "$LOGDIR"/"$(printf %b "$TDIR" | cut -d: -f1)" ] || continue
printf %b "$TDIR" | xargs -IL echo "L logfile"
sxmo_contacts.sh | while read -r CONTACT; do
[ -d "$LOGDIR"/"$(printf %b "$CONTACT" | cut -d: -f1)" ] || continue
printf %b "$CONTACT" | xargs -IL echo "L logfile"
done
)"
CONTACTIDANDNUM="$(printf %b "$ENTRIES" | menu dmenu -p Texts -c -fn Terminus-20 -l 10 -i)"

Loading…
Cancel
Save