File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,11 @@ echo -e "\t\tNotice file exists ? [OK]\n"
4646
4747# ## Licensing Check
4848echo " Performing custom Licensing Check "
49- numfilesWithNoLicense=` find . -iname ' *' -type f | grep -v NOTICE | grep -v LICENSE | grep -v ' .jpg' | grep -v ' .json' | grep -v ' .hfile' | grep -v ' .data' | grep -v ' .commit' | grep -v emptyFile | grep -v DISCLAIMER | grep -v KEYS | grep -v ' .mailmap' | grep -v ' .sqltemplate' | grep -v ' banner.txt' | grep -v ' .txt' | grep -v " fixtures" | xargs grep -L " Licensed to the Apache Software Foundation (ASF)" | wc -l`
49+ # Exclude the 'hudi-trino-plugin' directory
50+ numfilesWithNoLicense=` find . -path ' hudi-trino-plugin' -prune -o -type f -iname ' *' | grep -v NOTICE | grep -v LICENSE | grep -v ' .jpg' | grep -v ' .json' | grep -v ' .hfile' | grep -v ' .data' | grep -v ' .commit' | grep -v emptyFile | grep -v DISCLAIMER | grep -v ' .sqltemplate' | grep -v KEYS | grep -v ' .mailmap' | grep -v ' banner.txt' | grep -v ' .txt' | grep -v " fixtures" | xargs grep -L " Licensed to the Apache Software Foundation (ASF)" | wc -l`
5051if [ " $numfilesWithNoLicense " -gt " 0" ]; then
5152 echo " There were some source files that did not have Apache License [ERROR]"
52- find . -iname ' * ' -type f | grep -v NOTICE | grep -v LICENSE | grep -v ' .jpg' | grep -v ' .json' | grep -v ' .hfile' | grep -v ' .data' | grep -v ' .commit' | grep -v emptyFile | grep -v DISCLAIMER | grep -v ' .sqltemplate' | grep -v KEYS | grep -v ' .mailmap' | grep -v ' banner.txt' | grep -v ' .txt' | grep -v " fixtures" | xargs grep -L " Licensed to the Apache Software Foundation (ASF)"
53+ find . -path ' hudi-trino-plugin ' -prune -o - type f -iname ' * ' | grep -v NOTICE | grep -v LICENSE | grep -v ' .jpg' | grep -v ' .json' | grep -v ' .hfile' | grep -v ' .data' | grep -v ' .commit' | grep -v emptyFile | grep -v DISCLAIMER | grep -v ' .sqltemplate' | grep -v KEYS | grep -v ' .mailmap' | grep -v ' banner.txt' | grep -v ' .txt' | grep -v " fixtures" | xargs grep -L " Licensed to the Apache Software Foundation (ASF)"
5354 exit 1
5455fi
5556echo -e " \t\tLicensing Check Passed [OK]\n"
You can’t perform that action at this time.
0 commit comments