Create empty file for contactsfile if missing

master
Miles Alan 4 years ago
parent a011bed9b8
commit 435a1e74f1
  1. 1
      scripts/core/sxmo_contacts.sh

@ -10,6 +10,7 @@ CONTACTSFILE="$XDG_CONFIG_HOME"/sxmo/contacts.tsv
LOGFILE="$XDG_CONFIG_HOME"/sxmo/modem/modemlog.tsv LOGFILE="$XDG_CONFIG_HOME"/sxmo/modem/modemlog.tsv
contacts() { contacts() {
grep -q . "$CONTACTSFILE" || echo " " > "$CONTACTSFILE"
RECENTCONTACTEDNUMBERSREVCHRON="$( RECENTCONTACTEDNUMBERSREVCHRON="$(
cut -f3 "$LOGFILE" | cut -f3 "$LOGFILE" |
tac | tac |

Loading…
Cancel
Save