Skip to content
Snippets Groups Projects
Commit a014cec0 authored by Martin Schroschk's avatar Martin Schroschk
Browse files

Okay, now

parent 70f4a78f
No related branches found
No related tags found
3 merge requests!322Merge preview into main,!319Merge preview into main,!262Restructure pages regarding switched off systems
......@@ -5,13 +5,11 @@ set -euo pipefail
scriptpath=${BASH_SOURCE[0]}
basedir=`dirname "$scriptpath"`
basedir=`dirname "$basedir"`
wordlistfile=$basedir/wordlist.aspell
wordlistfile=$(realpath $basedir/wordlist.aspell)
echo "scriptpath: $scriptpath"
echo "basedir: $basedir"
echo "wordlistfile: $wordlistfile"
wordlistfile=$(realpath $wordlistfile)
echo "wordlistfile: $wordlistfile"
function getNumberOfAspellOutputLines(){
cat - | aspell -p "$wordlistfile" --ignore 2 -l en_US list --mode=markdown | sort -u | wc -l
......@@ -46,15 +44,15 @@ while read oldfile; do
#Remove the prefix "b/"
newfile=${newfile:2}
current_count=`cat "$newfile" | getNumberOfAspellOutputLines`
echo "======"
echo "$current_count"
echo "$newfile"
echo "pwd $PWD"
echo "wordlistfile: $wordlistfile"
grep ZIH $wordlistfile
echo "---"
cat $newfile | aspell -p "$wordlistfile" --ignore 2 -l en_US list --mode=markdown
echo "======"
# echo "======"
# echo "$current_count"
# echo "$newfile"
# echo "pwd $PWD"
# echo "wordlistfile: $wordlistfile"
# grep ZIH $wordlistfile
# echo "---"
# cat $newfile | aspell -p "$wordlistfile" --ignore 2 -l en_US list --mode=markdown
# echo "======"
fi
if [ $current_count -gt $previous_count ]; then
echo "-- File $newfile"
......
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