Skip to content

Commit

Permalink
fix: find dirnames per file to support large numbers of discovered fi…
Browse files Browse the repository at this point in the history
…les (#233)
  • Loading branch information
JonZeolla authored Jan 19, 2023
1 parent 29459cc commit 648401b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/functions.j2
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function {{ "scan_" ~ function if scan else function }}() {
{%- for file_extension in file_extensions %}
files=$(find . -iname "*.{{ file_extension }}" -type f)
if [[ "${files}" ]]; then
dirs+=($(for file in "${files}"; do dirname ${file}; done | sort -u | xargs readlink --canonicalize))
dirs+=($(for file in ${files}; do dirname ${file}; done | sort -u | xargs readlink --canonicalize))
fi
{%- endfor %}
{%- else %}
Expand Down

0 comments on commit 648401b

Please sign in to comment.