Route verify-bazel output to stderr
This commit is contained in:
parent
84bfc7ada5
commit
6375e2b24d
@ -21,9 +21,9 @@ export KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
|
|||||||
source "${KUBE_ROOT}/hack/lib/init.sh"
|
source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||||
|
|
||||||
if [[ ! -f "${KUBE_ROOT}/vendor/BUILD" ]]; then
|
if [[ ! -f "${KUBE_ROOT}/vendor/BUILD" ]]; then
|
||||||
echo "${KUBE_ROOT}/vendor/BUILD does not exist."
|
echo "${KUBE_ROOT}/vendor/BUILD does not exist." >&2
|
||||||
echo
|
echo >&2
|
||||||
echo "Run ./hack/update-bazel.sh"
|
echo "Run ./hack/update-bazel.sh" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -45,8 +45,8 @@ GOPATH="${_tmp_gopath}" ./hack/update-bazel.sh
|
|||||||
diff=$(diff -Naupr "${KUBE_ROOT}" "${_tmp_kuberoot}" || true)
|
diff=$(diff -Naupr "${KUBE_ROOT}" "${_tmp_kuberoot}" || true)
|
||||||
|
|
||||||
if [[ -n "${diff}" ]]; then
|
if [[ -n "${diff}" ]]; then
|
||||||
echo "${diff}"
|
echo "${diff}" >&2
|
||||||
echo
|
echo >&2
|
||||||
echo "Run ./hack/update-bazel.sh"
|
echo "Run ./hack/update-bazel.sh" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user