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

update file

parent 503a0222
Pipeline #17475 passed with stage
in 4 minutes and 44 seconds
......@@ -2,24 +2,25 @@
set -e
function readAspellOptions {
filename=$1
while read line; do aspellOptions=$aspellOptions$line; done < $filename
echo $aspellOptions
return aspellOptions
options=$1
local jsonOptions="aspell "
while read line; do jsonOptions=$jsonOptions$line; done < $options
echo "$jsonOptions"
}
echo "Spell checking"
spell_check_code=0
readAspellOptions
aspellOptions=$?
aspellOptions=$(readAspellOptions)
echo $aspellOptions
echo "this above is echo"
for x in $(find spellCheck/ -name '*.md');
do
lines=`cat $x | aspell $aspellOptions list 2>errors.txt |wc -l`
lines=`cat $x | $aspellOptions list 2>errors.txt |wc -l`
if [ $lines -gt 0 ]
then
echo $x:
cat $x | aspell $aspellOptions list
cat $x | $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