Pipe error message from openapi/swaggerspec verify checks to stderr

parent 1aa2a027
...@@ -35,7 +35,7 @@ mkdir -p "${_tmp}" ...@@ -35,7 +35,7 @@ mkdir -p "${_tmp}"
cp -a "${SPECROOT}" "${TMP_SPECROOT}" cp -a "${SPECROOT}" "${TMP_SPECROOT}"
trap "cp -a ${TMP_SPECROOT} ${SPECROOT}/..; rm -rf ${_tmp}" EXIT SIGINT trap "cp -a ${TMP_SPECROOT} ${SPECROOT}/..; rm -rf ${_tmp}" EXIT SIGINT
rm ${SPECROOT}/* rm ${SPECROOT}/*
cp ${TMP_SPECROOT}/BUILD ${SPECROOT}/BUILD cp ${TMP_SPECROOT}/BUILD ${SPECROOT}/BUILD
cp ${TMP_SPECROOT}/README.md ${SPECROOT}/README.md cp ${TMP_SPECROOT}/README.md ${SPECROOT}/README.md
"${KUBE_ROOT}/hack/update-openapi-spec.sh" "${KUBE_ROOT}/hack/update-openapi-spec.sh"
...@@ -46,7 +46,7 @@ if [[ $ret -eq 0 ]] ...@@ -46,7 +46,7 @@ if [[ $ret -eq 0 ]]
then then
echo "${SPECROOT} up to date." echo "${SPECROOT} up to date."
else 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 exit 1
fi fi
......
...@@ -44,7 +44,7 @@ if [[ $ret -eq 0 ]] ...@@ -44,7 +44,7 @@ if [[ $ret -eq 0 ]]
then then
echo "${SPECROOT} up to date." echo "${SPECROOT} up to date."
else 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 exit 1
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment