File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,17 @@ echo "Created temporary cspell config at $TEMP_CONFIG"
4242
4343# Run cspell on the target folder
4444npx --yes cspell --config " $TEMP_CONFIG " " $TARGET_FOLDER /**/*"
45+ SPELL_STATUS=$?
4546
4647# Clean up
4748rm " $TEMP_CONFIG "
4849echo " Temporary config deleted."
50+
51+ # Report and exit with the spell check status
52+ if [ $SPELL_STATUS -ne 0 ]; then
53+ echo " ❌ Spelling check failed."
54+ else
55+ echo " ✅ No spelling issues found."
56+ fi
57+
58+ exit $SPELL_STATUS
Original file line number Diff line number Diff line change @@ -14,4 +14,12 @@ echo "Linting Markdown files in directory: $TARGET_DIR"
1414
1515npx --yes markdownlint-cli --config ./.markdownlint.json $TARGET_DIR $FIX_FLAG
1616
17- echo " Done."
17+ STATUS=$?
18+
19+ if [ $STATUS -ne 0 ]; then
20+ echo " ❌ Markdown linting failed."
21+ else
22+ echo " ✅ No markdown linting issues found."
23+ fi
24+
25+ exit $STATUS
You can’t perform that action at this time.
0 commit comments