We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bfda81 commit 3ca838dCopy full SHA for 3ca838d
kube_codegen.sh
@@ -368,7 +368,10 @@ function kube::codegen::gen_openapi() {
368
"${input_pkgs[@]}"
369
fi
370
371
- touch "${report}" # in case it doesn't exist yet
+ if [ ! -e "${report}" ]; then
372
+ touch "${report}" # in case it doesn't exist yet
373
+ fi
374
+
375
if ! diff -u "${report}" "${new_report}"; then
376
echo -e "ERROR:"
377
echo -e "\tAPI rule check failed for ${report}: new reported violations"
0 commit comments