Create empty file for contactsfile if missing
This commit is contained in:
parent
a011bed9b8
commit
435a1e74f1
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue