]> git.xolatile.top Git - emil-xolatile.top.git/commitdiff
--
authorEmil Williams <emilemilemil@cock.li>
Sun, 6 Jul 2025 18:44:36 +0000 (18:44 +0000)
committerEmil Williams <emilemilemil@cock.li>
Sun, 6 Jul 2025 18:44:36 +0000 (18:44 +0000)
chud/spell

index ea5d9ab4ad74097e09833d97321a281913e1ec75..1aed136dc5440e62d7c226cd99ef1bb2c7d6cae4 100755 (executable)
@@ -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