verify: Use macOS compatible copying method

This commit is contained in:
Christoph Blecker 2017-01-28 10:00:29 -08:00
parent 597e938e3a
commit 907285c1fb
No known key found for this signature in database
GPG Key ID: B34A59A9D39F838B

View File

@ -33,14 +33,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}"
"${APIFEDERATOR_ROOT}/hack/update-codegen.sh" "${APIFEDERATOR_ROOT}/hack/update-codegen.sh"
echo "diffing ${DIFFROOT} against freshly generated codegen" echo "diffing ${DIFFROOT} against freshly generated codegen"
ret=0 ret=0
diff -Naupr "${DIFFROOT}" "${TMP_DIFFROOT}" || ret=$? diff -Naupr "${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."