diff --git a/tools/check-go-version-dockerfile.sh b/tools/check-go-version-dockerfile.sh index 6a310ddea..4e4fe635d 100755 --- a/tools/check-go-version-dockerfile.sh +++ b/tools/check-go-version-dockerfile.sh @@ -38,7 +38,7 @@ target_go_version="$1" while IFS= read -r -d '' file; do target_files+=("$file") done < <(find . \ - -path ./vendor -prune -o \ + -path ".**/vendor" -prune -o \ -type f \ \( -name "*.Dockerfile" -o -name "Dockerfile" \) \ -print0 \ diff --git a/tools/check-go-version-yaml.sh b/tools/check-go-version-yaml.sh index 9fac2678f..6091dee42 100755 --- a/tools/check-go-version-yaml.sh +++ b/tools/check-go-version-yaml.sh @@ -49,7 +49,7 @@ target_go_version="$1" while IFS= read -r -d '' file; do target_files+=("$file") done < <(find . \ - -path ./vendor -prune -o \ + -path ".**/vendor" -prune -o \ -type f \ \( -name "*.yaml" -o -name "*.yml" \) \ -print0 \