diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-01 12:36:40 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-01 12:36:40 +0100 |
commit | 5435cca0f528c8ab485a86fe24143cc09918b3a4 (patch) | |
tree | d3319a2f109cf505bded763d569e4f5846ae24dd /common | |
parent | fix(common/latex/preamble/academia/theorems/definitions.tex): Use expandable ... (diff) | |
download | flake-templates-5435cca0f528c8ab485a86fe24143cc09918b3a4.tar.gz flake-templates-5435cca0f528c8ab485a86fe24143cc09918b3a4.zip |
fix(common/scripts/latex/build.sh): Rewrite `find` invocations with `fd`
The `find` command sometimes did not filter out the `build` directory, resulting in an infinite loop of creating nested `build` directories.
Diffstat (limited to '')
-rwxr-xr-x | common/scripts/latex/build.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/scripts/latex/build.sh b/common/scripts/latex/build.sh index 80ecc57..3cc579a 100755 --- a/common/scripts/latex/build.sh +++ b/common/scripts/latex/build.sh @@ -23,7 +23,7 @@ for arg in "$@"; do done # find all directories which are not the destination dir or inside it -find "$root" -type d -not -name "$dst" -not -path "./$dst/*" -printf '%P\n' | while IFS= read -r dir; do +fd . "$root" --type directory --exclude "$dst" --exclude "./$dst/*" --hidden --exec realpath --relative-to=. {} | while IFS= read -r dir; do mkdir --parents "$dst/$dir" done |