1
Fork 0
mirror of https://github.com/RGBCube/HTMNIX synced 2025-06-01 04:58:15 +00:00

Fix _ignored file checking

This commit is contained in:
RGBCube 2024-02-28 12:52:27 +03:00
parent ebc812fbe7
commit 76c9a74f8b
No known key found for this signature in database

View file

@ -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"