Skip to content

Commit

Permalink
utils: Use macOS copatible copying method
Browse files Browse the repository at this point in the history
Same as in kubernetes#34944, releated to kubernetes#34890
  • Loading branch information
jellonek committed Oct 18, 2016
1 parent 40e1aa6 commit b45dfd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/verify-generated-protobuf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ trap "cleanup" EXIT SIGINT
cleanup
for APIROOT in ${APIROOTS}; do
mkdir -p "${_tmp}/${APIROOT}"
cp -a -T "${KUBE_ROOT}/${APIROOT}" "${_tmp}/${APIROOT}"
cp -a "${KUBE_ROOT}/${APIROOT}"/* "${_tmp}/${APIROOT}/"
done

KUBE_VERBOSE=3 "${KUBE_ROOT}/hack/update-generated-protobuf.sh"
Expand All @@ -44,7 +44,7 @@ for APIROOT in ${APIROOTS}; do
echo "diffing ${APIROOT} against freshly generated protobuf"
ret=0
diff -Naupr -I 'Auto generated by' -x 'zz_generated.*' "${KUBE_ROOT}/${APIROOT}" "${TMP_APIROOT}" || ret=$?
cp -a -T "${TMP_APIROOT}" "${KUBE_ROOT}/${APIROOT}"
cp -a "${TMP_APIROOT}"/* "${KUBE_ROOT}/${APIROOT}/"
if [[ $ret -eq 0 ]]; then
echo "${APIROOT} up to date."
else
Expand Down

0 comments on commit b45dfd5

Please sign in to comment.