diff --git a/hack/validate/vendor b/hack/validate/vendor index d8634d1da8..f5806be679 100755 --- a/hack/validate/vendor +++ b/hack/validate/vendor @@ -40,8 +40,7 @@ validate_vendor_diff(){ validate_vendor_used() { for f in $(mawk '/^[a-zA-Z0-9]/ { print $1 }' vendor.conf); do if [ -d "vendor/$f" ]; then - found=$(echo "vendor/$f/"* | grep -iEc '/(LICENSE|COPYING)') - if [ "$found" -eq 0 ]; then + if ! echo "vendor/$f"/* | grep -qiEc '/(LICENSE|COPYING)'; then echo "WARNING: could not find copyright information for $f" fi else