Commit d64e82f6 authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Grzegorz Daniluk

/tools/build-random: fix the scripts, quoting hell

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 7676ae22
...@@ -2,12 +2,11 @@ ...@@ -2,12 +2,11 @@
declare -A err declare -A err
HOW="grep -wi error $file"
for n in ko-build*; do for n in ko-build*; do
test -d $n || continue test -d $n || continue
file=$n/build file=$n/build
S=$($HOW | sort | md5sum | awk '{print $1}') S=$(grep -wi error $file | sort | md5sum | awk '{print $1}')
err[$S]=$n err[$S]=$n
done done
for n in ${err[*]}; do for n in ${err[*]}; do
......
...@@ -3,12 +3,11 @@ ...@@ -3,12 +3,11 @@
declare -A warn declare -A warn
HOW="grep -wi warning $file"
for n in warn-build*; do for n in warn-build*; do
test -d $n || continue test -d $n || continue
file=$n/build file=$n/build
S=$($HOW | sort | md5sum | awk '{print $1}') S=$(grep -wi warning $file | sort | md5sum | awk '{print $1}')
warn[$S]=$n warn[$S]=$n
done done
for n in ${warn[*]}; do for n in ${warn[*]}; do
......
Markdown is supported
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