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

update file: meeting result

parent 6309dd36
Pipeline #17658 passed with stage
in 59 seconds
......@@ -15,23 +15,27 @@ echo
for x in $(find spellCheck/ -name '*.md');
do
cmdlines="cat $x | aspell $aspellOptions list 2>errors.txt | wc -l"
echo $cmdlines
lines=$(($(eval $cmdLines)))
if [ $lines -gt 0 ]
then
echo $x:
cat $x | aspell $aspellOptions list
spell_check_code=1
echo
fi
cmdLines=`cat $x | aspell $aspellOptions list`
echo $cmdLines
# note: cmdLines is the command
# $( . ): executes the command
# $(( . )): converts the result from wc -l into a number
# lines=$(($(eval $cmdLines)))
# if [ $lines -gt 0 ]
# then
# echo $x:
# cat $x | aspell $aspellOptions list
# spell_check_code=1
# 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
# cmdLines="cat errors.txt | wc -l"
# lines=$(($(eval $cmdLines)))
# if [ $lines -gt 0 ]
# then
# cat errors.txt
# spell_check_code=1
# fi
done
if [ $spell_check_code -gt 0 ]
......
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