fix find complaint about arg order

pull/348/head
Cian Johnston 5 months ago
parent 0173eebd86
commit e5ad19dcf8

@ -36,7 +36,7 @@ declare -a modules=()
declare -a failures=() declare -a failures=()
# Collect all module directories containing a main.tf file # Collect all module directories containing a main.tf file
for path in $(find . -not -path '*/.*' -type f -name main.tf -maxdepth 2 | cut -d '/' -f 2 | sort -u); do for path in $(find . -maxdepth 2 -not -path '*/.*' -type f -name main.tf | cut -d '/' -f 2 | sort -u); do
modules+=("${path}") modules+=("${path}")
done done

Loading…
Cancel
Save