From ec43e935de5767a40f4c1af47588df7b9e607586 Mon Sep 17 00:00:00 2001 From: chonghe <44791194+chong-he@users.noreply.github.com> Date: Mon, 15 Apr 2024 17:43:57 +0800 Subject: [PATCH] Update scripts/mdlint.sh Co-authored-by: Mac L --- scripts/mdlint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mdlint.sh b/scripts/mdlint.sh index 31606467cab..02ff8830cac 100755 --- a/scripts/mdlint.sh +++ b/scripts/mdlint.sh @@ -13,7 +13,7 @@ if [[ $exit_code == 0 ]]; then exit 0 elif [[ $exit_code == 1 ]]; then echo "Exiting with errors. Run 'make mdlint' locally and commit the changes. Note that not all errors can be fixed automatically, if there are still errors after running 'make mdlint', look for the errors and fix manually." - docker run -v ./book:/workdir ghcr.io/igorshubovych/markdownlint-cli:latest '**/*.md' --ignore node_modules --fix + docker run --rm -v ./book:/workdir ghcr.io/igorshubovych/markdownlint-cli:latest '**/*.md' --ignore node_modules --fix exit 1 else echo "Exiting with exit code >1. Check for the error logs and fix them accordingly."