Skip to content

Commit

Permalink
Update scripts/mdlint.sh
Browse files Browse the repository at this point in the history
Co-authored-by: Mac L <mjladson@pm.me>
  • Loading branch information
chong-he and macladson authored Apr 15, 2024
1 parent 381d182 commit ec43e93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/mdlint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit ec43e93

Please sign in to comment.