mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Merge pull request #129740 from bobsongplus/automated-cherry-pick-of-#129629-upstream-release-1.32
Automated cherry pick of #129629: Fix: touch /dev/null permission denied on macos
This commit is contained in:
commit
ce39aed39e
@ -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