Commit 6309dd36 authored by Daniel Duarte's avatar Daniel Duarte
Browse files

update cmdLines

parent dc347602
......@@ -8,15 +8,16 @@ spell_check_code=0
version=`aspell --version`
echo $version
options=`cat aspellOptions.txt`
aspellOptions+=$options
aspellOptions=`cat aspellOptions.txt`
echo "using the following aspell command:"
echo $aspellOptions
echo
for x in $(find spellCheck/ -name '*.md');
do
lines=`cat $x | aspell $aspellOptions list 2>errors.txt |wc -l`
cmdlines="cat $x | aspell $aspellOptions list 2>errors.txt | wc -l"
echo $cmdlines
lines=$(($(eval $cmdLines)))
if [ $lines -gt 0 ]
then
echo $x:
......@@ -25,12 +26,12 @@ do
echo
fi
# we need to check stderr - in case something really bad happens there will be output there
lines=`cat errors.txt | wc -l`
if [ $lines -gt 0 ]
then
cat errors.txt
spell_check_code=1
fi
#lines=`cat errors.txt | wc -l`
#if [ $lines -gt 0 ]
#then
# cat errors.txt
# spell_check_code=1
#fi
done
if [ $spell_check_code -gt 0 ]
......@@ -38,5 +39,5 @@ then
echo "Spell check found some problems. Either fix them or add exceptions to the dictionary file: .aspell.en.pws"
fi
rm errors.txt
#rm errors.txt
exit $spell_check_code
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