From a2e19627fef293f040ab0ec726426e0997139837 Mon Sep 17 00:00:00 2001 From: 4DBug Date: Wed, 21 Oct 2026 03:00:35 -0500 Subject: [PATCH] tools/test: hashes.sh finds luau/luajit in the nix store when the pinned paths are gone (like check_all.sh) --- tools/test/hashes.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/test/hashes.sh b/tools/test/hashes.sh index 1eb8f91..6b96b98 100755 --- a/tools/test/hashes.sh +++ b/tools/test/hashes.sh @@ -5,6 +5,8 @@ # demo = t_drawhash with Widgets,Basic / whole demo open: changes with any demo edit cd "$(dirname "$0")/../.." export PATH="$PATH:/nix/store/2m2ja613nndihc8qm10f2rhq6znp1nh4-luau-0.734/bin:/nix/store/4qxq4arv32ly13kl3g0m5q80gm3a35xr-luajit-2.1.1741730670/bin" +command -v luau >/dev/null || { l=$(ls -d /nix/store/*-luau-*/bin 2>/dev/null | tail -1); [ -n "$l" ] && export PATH="$PATH:$l"; } +command -v luajit >/dev/null || { l=$(ls -d /nix/store/*-luajit-2*/bin 2>/dev/null | grep -v -- -env | tail -1); [ -n "$l" ] && export PATH="$PATH:$l"; } REV=${1:-HEAD} hashes() { # $1 = repo dir ( cd "$1"