mirror of https://github.com/kubernetes/kops.git
Fix boilerplate scripts
update-header.sh uses the output of verify-boilerplate
This commit is contained in:
parent
98ba08f496
commit
b95b0cfc1e
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue