diff options
author | David Spickett <david.spickett@linaro.org> | 2020-04-20 15:43:57 +0100 |
---|---|---|
committer | David Spickett <david.spickett@linaro.org> | 2020-04-20 16:58:38 +0100 |
commit | b9ecc76e09e95cd3132f1eef572279c1cec68218 (patch) | |
tree | 926c2b2d6d411ad266f70ee2756083bbbe07c05c /abe-bisect.sh | |
parent | 5bc4a8aa4bb4ec6ffc77d0acce0e3370582760d6 (diff) |
Shellcheck warning fixes
(all error/style level warnings)
SC1035: missing whitespace
SC2068: double quote array expansions
SC2145: argument mixes string and array
SC1066: Don't use $ on the left side of assignments
SC2126: Use grep -c instead of grep|wc
Change-Id: Ia53070d3e2c9aea9f626fdb7b2b5bfc9e1f8e682
Diffstat (limited to 'abe-bisect.sh')
-rwxr-xr-x | abe-bisect.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/abe-bisect.sh b/abe-bisect.sh index ecf551f4..3764d07b 100755 --- a/abe-bisect.sh +++ b/abe-bisect.sh @@ -104,8 +104,8 @@ if [ $? -ne 0 ]; then fi sums=`find builds/*/${TARGET}/gcc.git~master_rev_${GOODSHA1}-stage2/ -name "*.sum"` -good_nb_fail=$(grep -w FAIL $sums | wc -l) -good_nb_pass=$(grep -w PASS $sums | wc -l) +good_nb_fail=$(grep -wc FAIL $sums) +good_nb_pass=$(grep -wc PASS $sums) ${ABE}/abe.sh --target ${TARGET} \ gcc=gcc.git@${BADSHA1} \ @@ -120,8 +120,8 @@ if [ $? -ne 0 ]; then fi sums=`find builds/*/${TARGET}/gcc.git~master_rev_${BADSHA1}-stage2/ -name "*.sum"` -bad_nb_fail=$(grep -w FAIL $sums | wc -l) -bad_nb_pass=$(grep -w PASS $sums | wc -l) +bad_nb_fail=$(grep -wc FAIL $sums) +bad_nb_pass=$(grep -wc PASS $sums) # make sure BAD has more failures than GOOD if [ $bad_nb_fail -le $good_nb_fail ]; then |