summaryrefslogtreecommitdiff
path: root/abe-bisect-helper.sh
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2020-04-20 15:43:57 +0100
committerDavid Spickett <david.spickett@linaro.org>2020-04-20 16:58:38 +0100
commitb9ecc76e09e95cd3132f1eef572279c1cec68218 (patch)
tree926c2b2d6d411ad266f70ee2756083bbbe07c05c /abe-bisect-helper.sh
parent5bc4a8aa4bb4ec6ffc77d0acce0e3370582760d6 (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-helper.sh')
-rwxr-xr-xabe-bisect-helper.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/abe-bisect-helper.sh b/abe-bisect-helper.sh
index 9eea24ef..db71b10f 100755
--- a/abe-bisect-helper.sh
+++ b/abe-bisect-helper.sh
@@ -56,10 +56,10 @@ ${ABE}/abe.sh --target ${TARGET} \
[ $? -ne 0 ] && exit 125
sums=`find builds/*/${TARGET}/gcc.git~master_rev_${REV}-stage2/ -name "*.sum"`
-nb_fail=$(grep -w FAIL $sums | wc -l)
+nb_fail=$(grep -wc FAIL $sums)
[ ${nb_fail} -gt ${GOODFAIL} ] && exit 1 # More failures than GOOD, this is a bad one
-nb_pass=$(grep -w PASS $sums | wc -l)
+nb_pass=$(grep -wc PASS $sums)
[ ${nb_pass} -ge ${GOODPASS} ] && exit 0 # At least as many passes as GOOD, this is a good one
exit 125 # something went wrong