Skip to content

Commit

Permalink
docs generation: Use macos compatible copy method
Browse files Browse the repository at this point in the history
  • Loading branch information
jellonek committed Oct 18, 2016
1 parent 40e1aa6 commit edd311f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hack/verify-generated-swagger-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ trap "cleanup" EXIT SIGINT

cleanup

mkdir -p "${_tmp}"
cp -a -T "${DIFFROOT}" "${TMP_DIFFROOT}"
mkdir -p "${TMP_DIFFROOT}"
cp -a "${DIFFROOT}"/* "${TMP_DIFFROOT}/"

"${KUBE_ROOT}/hack/update-generated-swagger-docs.sh"
echo "diffing ${DIFFROOT} against freshly generated swagger type documentation"
ret=0
diff -Naupr -I 'Auto generated by' "${DIFFROOT}" "${TMP_DIFFROOT}" || ret=$?
cp -a -T "${TMP_DIFFROOT}" "${DIFFROOT}"
cp -a "${TMP_DIFFROOT}"/* "${DIFFROOT}/"
if [[ $ret -eq 0 ]]
then
echo "${DIFFROOT} up to date."
Expand Down

0 comments on commit edd311f

Please sign in to comment.