mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #40489 from pricec/fix-license-check
Vendor check to succeed even if copyright information is not found
This commit is contained in:
commit
d8772509d1
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue