diff --git a/hack/lib/util.sh b/hack/lib/util.sh index 38ae262dcc2..82ad2354a72 100755 --- a/hack/lib/util.sh +++ b/hack/lib/util.sh @@ -171,7 +171,11 @@ kube::util::gen-doc() { done <"${dest}/.files_generated" # put the new generated file into the destination - find "${tmpdir}" -exec rsync -pt {} "${dest}" \; >/dev/null + # the shopt is so that we get .files_generated from the glob. + shopt -s dotglob + cp -af "${tmpdir}"/* "${dest}" + shopt -u dotglob + #cleanup rm -rf "${tmpdir}" }