From 5f9d3b34315ed6bd2a4efc0070ec94cea5a5eb70 Mon Sep 17 00:00:00 2001 From: Justin SB Date: Mon, 7 Sep 2020 17:35:57 -0400 Subject: [PATCH] verify-terraform: rearrange arguments to find Otherwise we get a warning: "find: warning: you have specified the global option -maxdepth after the argument -type, but global options are not positional, i.e., -maxdepth affects tests specified before it as well as those specified after it. Please specify global options before other arguments." --- hack/verify-terraform.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/verify-terraform.sh b/hack/verify-terraform.sh index 91ff969ee653d..3dfc400737865 100755 --- a/hack/verify-terraform.sh +++ b/hack/verify-terraform.sh @@ -39,7 +39,7 @@ while IFS= read -r -d '' -u 3 test_dir; do kube::util::array_contains "${cluster}" "${CLUSTERS_0_11[@]}" && tag=$TAG_0_11 || tag=$TAG_0_13 docker run --rm -e "TF_PLUGIN_CACHE_DIR=${PROVIDER_CACHE}" -v "${PROVIDER_CACHE}:${PROVIDER_CACHE}" -v "${test_dir}":"${test_dir}" -w "${test_dir}" --entrypoint=sh hashicorp/terraform:$tag -c '/bin/terraform init >/dev/null && /bin/terraform validate' || RC=$? -done 3< <(find "${KOPS_ROOT}/tests/integration/update_cluster" -type d -maxdepth 1 -print0) +done 3< <(find "${KOPS_ROOT}/tests/integration/update_cluster" -maxdepth 1 -type d -print0) if [ $RC != 0 ]; then echo -e "\nTerraform validation failed\n"