diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2021-02-01 17:33:50 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2021-02-01 17:33:50 +0000 |
commit | d78931dd8a9b19d5eef43aed6fba7ee2dc09364c (patch) | |
tree | 657537e7b3c7398281e9236b9c4865a7b0539922 /round-robin-bisect.sh | |
parent | 80aac341bf566a697322fad88703823710631e80 (diff) |
round-robin-bisect.sh: Fix exiting a subshell
In newer bash versions "continue", apparently, doesn't have
a side-effect of ending a subshell. Use proper "exit" instead.
Change-Id: I7fc458442b6da04ad11c9e7b44d9189cfbe5bc23
Diffstat (limited to 'round-robin-bisect.sh')
-rwxr-xr-x | round-robin-bisect.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/round-robin-bisect.sh b/round-robin-bisect.sh index b510bf77..63956b01 100755 --- a/round-robin-bisect.sh +++ b/round-robin-bisect.sh @@ -354,16 +354,14 @@ while [ x"$(get_first_bad </dev/null)" = x"" ] && read -a arr; do # Ignore commits outside of bisection range. if ! grep -q "^$sha1\$" $commits_to_test; then - # shellcheck disable=SC2106 - continue + exit 0 fi # Skip revisions that were already tested. Good revisions are filtered # out in the above $commits_to_test check, and here we filter out # "bad" and "skip" revisions. if git bisect log | grep -q "^git bisect .* $sha1\$"; then - # shellcheck disable=SC2106 - continue + exit 0 fi if $verbose; then set -x; fi |