summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-02-19 19:41:06 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-02-19 19:41:06 +0100
commit55e46bab44a1193cd4bf3f5f1326e95b6ce359d1 (patch)
tree78994e899077cf852457966aa5ccc61743e742f3
parente39df4c6a80000dc52816c039bc77b7422dfe073 (diff)
move live location log file to var/local
-rwxr-xr-xhelpers/append-location4
1 files changed, 2 insertions, 2 deletions
diff --git a/helpers/append-location b/helpers/append-location
index 0e1af89..64d6521 100755
--- a/helpers/append-location
+++ b/helpers/append-location
@@ -1,10 +1,10 @@
#!/bin/zsh
-lastloc=$(tail -n 1 ~/var/log/location)
+lastloc=$(tail -n 1 ~/var/local/.location-log)
newloc=$1
if echo $lastloc | fgrep -q $newloc; then
exit 0
fi
-printf "%s %-10s %s\n" "$(date -R)" $newloc $SSH_CLIENT[(w)1] >> ~/var/log/location
+printf "%s %-10s %s\n" "$(date -R)" $newloc $SSH_CLIENT[(w)1] >> ~/var/local/.location-log