Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
chong-he committed Apr 12, 2024
1 parent f55a92f commit 04b09d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/mdlint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ docker run -v ./book:/workdir ghcr.io/igorshubovych/markdownlint-cli:latest '**/

# exit code
exit_code=$(echo $?)
echo $exit_code
# echo $exit_code

if [[ $exit_code == 0 ]]; then
echo "All markdown files are properly formatted."
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
#docker run -v ./book:/workdir ghcr.io/igorshubovych/markdownlint-cli:latest '**/*.md' --ignore node_modules --fix
else
echo "Exiting with exit code >1. Check for the error logs and fix them accordingly."
fi

0 comments on commit 04b09d7

Please sign in to comment.