diff --git a/hack/util.sh b/hack/util.sh index 7c41570..871aafc 100644 --- a/hack/util.sh +++ b/hack/util.sh @@ -10,14 +10,14 @@ function util::find_modules() { -o -path '*/third_party/*' \ -o -path '*/vendor/*' \ \) -prune \ - \) -name 'go.mod' -print0 | xargs -0 -I {} dirname {} | grep './nacos/v2' && find . -not \( \ + \) -name 'go.mod' -print0 | xargs -0 -I {} dirname {} | grep -v './nacos/v2' && find . -not \( \ \( \ -path './output' \ -o -path './.git' \ -o -path '*/third_party/*' \ -o -path '*/vendor/*' \ \) -prune \ - \) -name 'go.mod' -print0 | xargs -0 -I {} dirname {} | grep -v './nacos/v2' + \) -name 'go.mod' -print0 | xargs -0 -I {} dirname {} | grep './nacos/v2' }