提交 5e9290a6 编写于 作者: C Christopher Desiniotis

Merge branch 'cicd' into 'master'

Enable manual license checkin

See merge request nvidia/container-toolkit/nvidia-container-runtime!8
......@@ -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
......@@ -2,3 +2,4 @@ Apache-2.0
BSD-3-Clause
MIT
ISC
./runtime/src/vendor/github.com/pmezard/go-difflib/LICENSE, BSD
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册