Skip to content
Snippets Groups Projects
Commit 8978d69d authored by Matthias Bernt's avatar Matthias Bernt
Browse files

fix

parent a0b5054a
No related branches found
No related tags found
1 merge request!5Add spellcking
Pipeline #473016 failed
......@@ -42,10 +42,10 @@ aspell:
ERRORS=0
find . -name "*.md" -print0 | while IFS= read -r -d '' file; do
echo "Checking $file"
aspell --lang=en --mode=markdown --add-wordlists=custom.dict list < "$file" > /tmp/spellcheck_output.txt
if [ $? -ne 0 ]; then
SPELL_OUTPUT=$(aspell --lang=en --mode=markdown --add-wordlists=custom.dict list < "$file" | sort -u)
if [ -n "$SPELL_OUTPUT" ]; then
echo "Spelling errors detected in $file"
cat /tmp/spellcheck_output.txt
echo "$SPELL_OUTPUT"
ERRORS=1
else
echo "No spelling errors in $file $?"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment