Commit 62cc4319 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #34944 from jellonek/mac_compatible_copy

Automatic merge from submit-queue docs generation: Use macOS compatible copying method Replace option unknown for bsd version of `cp` used on macOS with compatible between systems replacement. Closes #34890 ```release-note NONE ```
parents a5da5c09 edd311f7
...@@ -49,14 +49,14 @@ trap "cleanup" EXIT SIGINT ...@@ -49,14 +49,14 @@ trap "cleanup" EXIT SIGINT
cleanup cleanup
mkdir -p "${_tmp}" mkdir -p "${TMP_DIFFROOT}"
cp -a -T "${DIFFROOT}" "${TMP_DIFFROOT}" cp -a "${DIFFROOT}"/* "${TMP_DIFFROOT}/"
"${KUBE_ROOT}/hack/update-generated-swagger-docs.sh" "${KUBE_ROOT}/hack/update-generated-swagger-docs.sh"
echo "diffing ${DIFFROOT} against freshly generated swagger type documentation" echo "diffing ${DIFFROOT} against freshly generated swagger type documentation"
ret=0 ret=0
diff -Naupr -I 'Auto generated by' "${DIFFROOT}" "${TMP_DIFFROOT}" || ret=$? 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 ]] if [[ $ret -eq 0 ]]
then then
echo "${DIFFROOT} up to date." echo "${DIFFROOT} up to date."
......
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