Fix boilerplate scripts

update-header.sh uses the output of verify-boilerplate
This commit is contained in:
Justin Santa Barbara 2018-03-18 17:31:10 -04:00
parent 98ba08f496
commit b95b0cfc1e
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@
. $(dirname "${BASH_SOURCE}")/common.sh
BAD_HEADERS=$((${KUBE_ROOT}/hack/verify-boilerplate.sh || true) | awk '{ print $6}')
BAD_HEADERS=$((${KUBE_ROOT}/hack/verify-boilerplate.sh || true) | awk '{ print $7}')
FORMATS="sh go Makefile Dockerfile"
for i in ${FORMATS}

View File

@ -44,6 +44,6 @@ if [[ ${#TEMP_ARRAY[@]} -gt 0 ]]; then
for file in "${TEMP_ARRAY[@]}"; do
echo "FAIL: Boilerplate header is wrong for: ${file}"
done
echo "FAIL: Please execute ./hack/update-header.sh to update headers"
echo "FAIL: Please execute ./hack/update-header.sh"
exit 1
fi