CI: static-checks: Improve markdown checker test

Only attempt to build the markdown checker if it doesn't already exist.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
James O. D. Hunt 2023-12-06 15:29:18 +00:00
parent 9d38f01c2f
commit 3ad43df946

View File

@ -647,6 +647,7 @@ static_check_docs()
# is necessary to guarantee that all docs are referenced.
md_docs_to_check="$all_docs"
command -v kata-check-markdown &>/dev/null ||\
(cd "${test_dir}" && make -C cmd/check-markdown)
command -v kata-check-markdown &>/dev/null || \