diff --git a/license/check.sh b/license/check.sh index 700945f7339cea4369c079713f36f77a8c5f7422..0477528fdf46998a4fbea2202ab18d899683991a 100755 --- a/license/check.sh +++ b/license/check.sh @@ -17,10 +17,19 @@ for path in `cat /tmp/LICENSES.list`; do tr -s ' ' | grep -E '^ Confidence:' | awk '{print $2}') echo "Inspecting License ${license} (${confidence}) at ${path}" | tee -a /tmp/LICENSE.result - if ! grep -Fxq "${license}" ./license/whitelist.txt; then - echo "Found unexpected license at ${path}" - exit 1 + if grep -Fxq "${license}" ./license/whitelist.txt; then + continue fi + + echo "Found unexpected license at ${path}" | tee -a /tmp/LICENSE.result + + if grep -Fq "${path}" ./license/whitelist.txt; then + echo -e "There was a manual inspection for this license\n" | tee -a /tmp/LICENSE.result + continue + fi + + cat /tmp/LICENSE.result + exit 1 done cat /tmp/LICENSE.result diff --git a/license/whitelist.txt b/license/whitelist.txt index 2da343368198fb85629d27b39a381f6062d3a216..a5eab4376e26d93b71c09067735b82f7f2e797e6 100644 --- a/license/whitelist.txt +++ b/license/whitelist.txt @@ -2,3 +2,4 @@ Apache-2.0 BSD-3-Clause MIT ISC +./runtime/src/vendor/github.com/pmezard/go-difflib/LICENSE, BSD