mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Merge pull request #129741 from bobsongplus/automated-cherry-pick-of-#129629-upstream-release-1.31
Automated cherry pick of #129629: Fix: touch /dev/null permission denied on macos
This commit is contained in:
commit
c74754fee6
@ -368,7 +368,10 @@ function kube::codegen::gen_openapi() {
|
||||
"${input_pkgs[@]}"
|
||||
fi
|
||||
|
||||
touch "${report}" # in case it doesn't exist yet
|
||||
if [ ! -e "${report}" ]; then
|
||||
touch "${report}" # in case it doesn't exist yet
|
||||
fi
|
||||
|
||||
if ! diff -u "${report}" "${new_report}"; then
|
||||
echo -e "ERROR:"
|
||||
echo -e "\tAPI rule check failed for ${report}: new reported violations"
|
||||
|
Loading…
Reference in New Issue
Block a user