Skip to content

Commit

Permalink
Finalizing spell checker
Browse files Browse the repository at this point in the history
  • Loading branch information
achiefa committed Dec 18, 2024
1 parent 9a2bcbc commit 2a23e6e
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion cicd/spelling.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,19 @@
# -a: Morphological analysis
# -l: List only misspelled words
# -d dict/words: Adds custom dictionary located in dict/words
hunspellOutput="$(find . -type f -name '*.tex' | xargs hunspell -d en_GB -t -a -l -p dict/words)"
hunspellOutput="$(find . -type f -name '*.tex' | xargs hunspell -d en_GB -t -a -l -p dict/words)"
if [ "${hunspellOutput}" != "" ]; then
# Spelling errors
echo ""
echo "======================================="
echo "There are spelling errors listed below."
echo "Either fix, or add to \"dict/words\""
echo "======================================="
echo ""
hunspell -d en_GB -t -a -l -p dict/words *tex
exit 1

else
echo "Spelling looks good to me..."

fi

0 comments on commit 2a23e6e

Please sign in to comment.