From e5ad19dcf87c7b7ecf3a457d3119c33f47f9b2dd Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Fri, 22 Nov 2024 21:53:43 +0000 Subject: [PATCH] fix find complaint about arg order --- .github/scripts/check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/check.sh b/.github/scripts/check.sh index e11d3ae5..74625a2b 100755 --- a/.github/scripts/check.sh +++ b/.github/scripts/check.sh @@ -36,7 +36,7 @@ declare -a modules=() declare -a failures=() # 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}") done