mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +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[@]}"
|
||||
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