Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
chong-he committed Apr 12, 2024
1 parent 04b09d7 commit 305751b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/mdlint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ exit_code=$(echo $?)

if [[ $exit_code == 0 ]]; then
echo "All markdown files are properly formatted."
exit 0
elif [[ $exit_code == 1 ]]; then
echo "Exiting with exit code $exit_code. Run 'make mdlint' locally and commit the changes."
#docker run -v ./book:/workdir ghcr.io/igorshubovych/markdownlint-cli:latest '**/*.md' --ignore node_modules --fix
echo "Exiting with errors. Run 'make mdlint' locally and commit the changes."
docker run -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."
fi
exit 1
fi

0 comments on commit 305751b

Please sign in to comment.