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