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

Test

parent 7353894b
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
...@@ -21,6 +21,8 @@ any_fails=false ...@@ -21,6 +21,8 @@ any_fails=false
source_hash=`git merge-base HEAD "$branch"` source_hash=`git merge-base HEAD "$branch"`
#Remove everything except lines beginning with --- or +++ #Remove everything except lines beginning with --- or +++
files=`git diff $source_hash | sed -n 's/^[-+]\{3,3\} //p'` files=`git diff $source_hash | sed -n 's/^[-+]\{3,3\} //p'`
echo "$files"
echo "-------------------------"
#Assume that we have pairs of lines (starting with --- and +++). #Assume that we have pairs of lines (starting with --- and +++).
while read oldfile; do while read oldfile; do
read newfile read newfile
...@@ -38,6 +40,11 @@ while read oldfile; do ...@@ -38,6 +40,11 @@ while read oldfile; do
#Remove the prefix "b/" #Remove the prefix "b/"
newfile=${newfile:2} newfile=${newfile:2}
current_count=`cat "$newfile" | getNumberOfAspellOutputLines` current_count=`cat "$newfile" | getNumberOfAspellOutputLines`
echo "======"
echo "$current_count"
echo "$newfile"
cat - | aspell -p "$wordlistfile" --ignore 2 -l en_US list --mode=markdown
echo "======"
fi fi
if [ $current_count -gt $previous_count ]; then if [ $current_count -gt $previous_count ]; then
echo "-- File $newfile" echo "-- File $newfile"
...@@ -50,5 +57,3 @@ done <<< "$files" ...@@ -50,5 +57,3 @@ done <<< "$files"
if [ "$any_fails" == true ]; then if [ "$any_fails" == true ]; then
exit 1 exit 1
fi fi
echo "hier"
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