From 5435cca0f528c8ab485a86fe24143cc09918b3a4 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 1 Dec 2024 12:36:40 +0100 Subject: 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. --- common/scripts/latex/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/scripts/latex/build.sh') 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 -- cgit 1.4.1