Commit 18209321 authored by Daniel Duarte's avatar Daniel Duarte
Browse files

update file

parent 9438837d
Pipeline #17446 passed with stage
in 4 minutes and 41 seconds
#!/bin/bash
set -e
aspellOptions = ""
function readAspellOptions:{
filename='aspellOptions.txt'
while read line; do aspellOptions=$aspellOptions$line; done < aspellOptions.txt
echo "$aspellOptions"
}
echo "Spell checking"
spell_check_code=0
readAspellOptions()
for x in $(find spellCheck/ -name '*.md');
do
lines=`cat $x | aspell --lang=en --mode=markdown --encoding=utf-8 --add-extra-dicts=.aspell.en.pws --add-extra-dicts=.aspell-exceptions.en.pws --add-extra-dicts=.aspell-api-exceptions.en.pws list 2>errors.txt |wc -l`
lines=`cat $x | aspell $aspellOptions list 2>errors.txt |wc -l`
if [ $lines -gt 0 ]
then
echo $x:
cat $x | aspell --lang=en --mode=markdown --encoding=utf-8 --add-extra-dicts=.aspell.en.pws --add-extra-dicts=.aspell-exceptions.en.pws --add-extra-dicts=.aspell-api-exceptions.en.pws list
cat $x | aspell $aspellOptions list
spell_check_code=1
echo
fi
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment