From: Emil Williams Date: Sun, 6 Jul 2025 18:44:36 +0000 (+0000) Subject: -- X-Git-Url: https://git.xolatile.top/?a=commitdiff_plain;h=c9ec0deab48d2b969a8b51bbf8855a4d721ee416;p=emil-xolatile.top.git -- --- diff --git a/chud/spell b/chud/spell index ea5d9ab..1aed136 100755 --- a/chud/spell +++ b/chud/spell @@ -2,9 +2,10 @@ # invoke calc and shit out only the thing, $1 or date, no excess newline # had to move to julian because it is the only sane system, but there's several demonic incorrect version of it with concepts such as "years" path="$(dirname "$(realpath "$0")")" +cd $path calc='calc -dp --' if [ -z "$1" ]; then -nu="$(($(cat nu) + 1))" +nu="$(($(cat "$path"/nu) + 1))" echo $nu > nu date="$((2460718 + $nu))" else