diff options
author | noa | 2024-01-03 10:29:55 +0000 |
---|---|---|
committer | noa | 2024-01-03 10:29:55 +0000 |
commit | 3052672f0373012ba630cdc5e4802724a69dcf1c (patch) | |
tree | 3e306350f0594e0ce2ebf4269882f6bc3f548fc6 /booktime | |
parent | 7f9c6a9a437323731261589f8e890e742b36e71a (diff) |
Update booktime to use our/data directory
Diffstat (limited to 'booktime')
-rwxr-xr-x | booktime | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/booktime b/booktime index 2b4f2be..9133210 100755 --- a/booktime +++ b/booktime @@ -12,7 +12,7 @@ ip=$(finger $NICK 2>/dev/null | egrep -o -m 1 '([0-9]{1,3}\.){3}[0-9]{1,3}') [[ -n $ip ]] && TIMEZONE=$(curl -s "https://ipapi.co/$ip/timezone") TIME=$(TZ=$TIMEZONE date "+%H:%M") -SENTS="/home/noa/doc/booktime.psv" +SENTS="/town/our/data/booktime.psv" awk -F '|' -v time="$TIME" \ '{ if ($1 == time) { print $3 " --" $5 ", " $4 } else {next }}' "$SENTS" \ |