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

debug

parent 22d24070
No related branches found
No related tags found
1 merge request!5Add spellcking
Pipeline #473030 failed
......@@ -43,18 +43,15 @@ aspell:
ERRORS=0
find . -name "*.md" -print0 | while IFS= read -r -d '' file; do
echo "Checking $file"
SPELL_OUTPUT=$(aspell --lang=en --mode=markdown --add-wordlists=custom.dict list < "$file" | sort -u)
SPELL_OUTPUT=(aspell --lang=en --mode=markdown --add-wordlists=custom.dict list < "$file" | tee -a spelling | sort -u)
if [ -n "$SPELL_OUTPUT" ]; then
echo "Spelling errors detected in $file"
echo "$SPELL_OUTPUT"
ERRORS=1
else
echo "No spelling errors in $file $?"
echo "No spelling errors in $file"
fi
echo "ERRORS after checking $file: $ERRORS"
done
echo "ERRORS after the loop: $ERRORS"
if [ "$ERRORS" -ne 0 ]; then
if [ -n "$(cat spelling)" ]; then
echo "Spelling errors were detected. Failing the job."
exit 1
else
......
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