Pipe error message from openapi/swaggerspec verify checks to stderr

This commit is contained in:
Christoph Blecker 2018-02-13 21:38:46 -08:00
parent 1aa2a027ed
commit 839fe0ce4a
No known key found for this signature in database
GPG Key ID: B34A59A9D39F838B
2 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ mkdir -p "${_tmp}"
cp -a "${SPECROOT}" "${TMP_SPECROOT}"
trap "cp -a ${TMP_SPECROOT} ${SPECROOT}/..; rm -rf ${_tmp}" EXIT SIGINT
rm ${SPECROOT}/*
cp ${TMP_SPECROOT}/BUILD ${SPECROOT}/BUILD
cp ${TMP_SPECROOT}/BUILD ${SPECROOT}/BUILD
cp ${TMP_SPECROOT}/README.md ${SPECROOT}/README.md
"${KUBE_ROOT}/hack/update-openapi-spec.sh"
@ -46,7 +46,7 @@ if [[ $ret -eq 0 ]]
then
echo "${SPECROOT} up to date."
else
echo "${SPECROOT} is out of date. Please run hack/update-openapi-spec.sh"
echo "${SPECROOT} is out of date. Please run hack/update-openapi-spec.sh" >&2
exit 1
fi

View File

@ -44,7 +44,7 @@ if [[ $ret -eq 0 ]]
then
echo "${SPECROOT} up to date."
else
echo "${SPECROOT} is out of date. Please run hack/update-swagger-spec.sh"
echo "${SPECROOT} is out of date. Please run hack/update-swagger-spec.sh" >&2
exit 1
fi