From 3052672f0373012ba630cdc5e4802724a69dcf1c Mon Sep 17 00:00:00 2001 From: noa Date: Wed, 3 Jan 2024 10:29:55 +0000 Subject: Update booktime to use our/data directory --- booktime | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'booktime') 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" \ -- cgit 1.4.1-2-gfad0