Thanks to visit codestin.com Credit goes to github.com
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 f74ea3c commit 0ebe3efCopy full SHA for 0ebe3ef
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