mirror of
https://github.com/RGBCube/HTMNIX
synced 2025-07-25 06:57:43 +00:00
Fix _ignored file checking
This commit is contained in:
parent
ebc812fbe7
commit
76c9a74f8b
1 changed files with 1 additions and 1 deletions
2
build.sh
2
build.sh
|
@ -10,7 +10,7 @@ for dir in $(find site -type d); do
|
||||||
done
|
done
|
||||||
|
|
||||||
for file in $(find site -type f); do
|
for file in $(find site -type f); do
|
||||||
if [[ ! "$file" =~ ^_ ]]; then
|
if [[ ! "${file##*/}" =~ ^_ ]]; then
|
||||||
if [[ "$file" =~ .nix$ ]]; then
|
if [[ "$file" =~ .nix$ ]]; then
|
||||||
echo "Processing file $file to _${file%.nix}.html..."
|
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"
|
TARGET_FILE=$(realpath "$file") nix eval "${HTMNIX_REF:-github:RGBCube/HTMNIX}#result" --impure --raw --apply toString > "_${file%.nix}.html"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue