From 3ad43df94613e574c176cdd49ee9bef0b18dfecf Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Wed, 6 Dec 2023 15:29:18 +0000 Subject: [PATCH] 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 --- tests/static-checks.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/static-checks.sh b/tests/static-checks.sh index 925306c7b2..a1b606ec62 100755 --- a/tests/static-checks.sh +++ b/tests/static-checks.sh @@ -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.'