From 76c9a74f8beb8bf18dc6bf68f46a353ba2b74325 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Wed, 28 Feb 2024 12:52:27 +0300 Subject: [PATCH] Fix _ignored file checking --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 3df0a59..d5beca1 100755 --- a/build.sh +++ b/build.sh @@ -10,7 +10,7 @@ for dir in $(find site -type d); do done for file in $(find site -type f); do - if [[ ! "$file" =~ ^_ ]]; then + if [[ ! "${file##*/}" =~ ^_ ]]; then if [[ "$file" =~ .nix$ ]]; then echo "Processing file $file to _${file%.nix}.html..." TARGET_FILE=$(realpath "$file") nix eval "${HTMNIX_REF:-github:RGBCube/HTMNIX}#result" --impure --raw --apply toString > "_${file%.nix}.html"