modem: use XDG_CONFIG_HOME to save logs

Signed-off-by: Miles Alan <m@milesalan.com>
This commit is contained in:
Anjandev Momi 2020-06-04 21:26:16 -07:00 committed by Miles Alan
parent 66eeb46a55
commit 1b78c3cf2f
5 changed files with 10 additions and 6 deletions

View file

@ -1,2 +1,3 @@
#!/usr/bin/env sh
st -fn "Terminus-14" -e tail -f ~/.sxmo/modemlog.tsv
LOGDIR="$XDG_CONFIG_HOME"/sxmo/modem
st -fn "Terminus-14" -e tail -f "$LOGDIR"/modemlog.tsv