From b27adf1edc297dd7723998fcf4960929b2b2952d Mon Sep 17 00:00:00 2001 From: Moritz Wiesinger Date: Thu, 30 Mar 2023 10:20:46 +0200 Subject: [PATCH] chore: improve CRD docs generation script output (#1157) --- .github/scripts/generate-crd-docs/generate-crd-docs.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/scripts/generate-crd-docs/generate-crd-docs.sh b/.github/scripts/generate-crd-docs/generate-crd-docs.sh index 6efa5f1926..cc2fb02f73 100755 --- a/.github/scripts/generate-crd-docs/generate-crd-docs.sh +++ b/.github/scripts/generate-crd-docs/generate-crd-docs.sh @@ -16,7 +16,12 @@ RENDERER='markdown' RENDERER_CONFIG_FILE='.github/scripts/generate-crd-docs/crd-docs-generator-config.yaml' echo "Checking if code generator tool is installed..." -test -s crd-ref-docs || go install github.com/elastic/crd-ref-docs@${GENERATOR_VERSION} +if ! test -s crd-ref-docs; then + echo "Docs generator is not installed, installing now..." + go install github.com/elastic/crd-ref-docs@${GENERATOR_VERSION} +else + echo "Docs generator is installed, continuing..." +fi echo "Running CRD docs auto-generator..."