File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 88# -a: Morphological analysis
99# -l: List only misspelled words
1010# -d dict/words: Adds custom dictionary located in dict/words
11- hunspellOutput=" $( find . -type f -name ' *.tex' | xargs hunspell -d en_GB -t -a -l -p dict/words) "
11+ hunspellOutput=" $( find . -type f -name ' *.tex' | xargs hunspell -d en_GB -t -a -l -p dict/words) "
12+ if [ " ${hunspellOutput} " != " " ]; then
13+ # Spelling errors
14+ echo " "
15+ echo " ======================================="
16+ echo " There are spelling errors listed below."
17+ echo " Either fix, or add to \" dict/words\" "
18+ echo " ======================================="
19+ echo " "
20+ hunspell -d en_GB -t -a -l -p dict/words * tex
21+ exit 1
22+
23+ else
24+ echo " Spelling looks good to me..."
25+
26+ fi
You can’t perform that action at this time.
0 commit comments