1
0
mirror of https://github.com/kata-containers/kata-containers.git synced 2025-05-05 06:57:26 +00:00

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,7 +647,8 @@ static_check_docs()
# is necessary to guarantee that all docs are referenced.
md_docs_to_check="$all_docs"
(cd "${test_dir}" && make -C cmd/check-markdown)
command -v kata-check-markdown &>/dev/null ||\
(cd "${test_dir}" && make -C cmd/check-markdown)
command -v kata-check-markdown &>/dev/null || \
die 'kata-check-markdown command not found. Ensure that "$GOPATH/bin" is in your $PATH.'