From 55e46bab44a1193cd4bf3f5f1326e95b6ce359d1 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 19 Feb 2018 19:41:06 +0100 Subject: move live location log file to var/local --- helpers/append-location | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'helpers') 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 -- cgit v1.2.3