mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Fix: touch /dev/null permission denied on macos
Signed-off-by: song <tinysong1226@gmail.com>
This commit is contained in:
parent
3fe9d933ee
commit
c5958ed889
@ -368,7 +368,10 @@ function kube::codegen::gen_openapi() {
|
|||||||
"${input_pkgs[@]}"
|
"${input_pkgs[@]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -e "${report}" ]; then
|
||||||
touch "${report}" # in case it doesn't exist yet
|
touch "${report}" # in case it doesn't exist yet
|
||||||
|
fi
|
||||||
|
|
||||||
if ! diff -u "${report}" "${new_report}"; then
|
if ! diff -u "${report}" "${new_report}"; then
|
||||||
echo -e "ERROR:"
|
echo -e "ERROR:"
|
||||||
echo -e "\tAPI rule check failed for ${report}: new reported violations"
|
echo -e "\tAPI rule check failed for ${report}: new reported violations"
|
||||||
|
Loading…
Reference in New Issue
Block a user