diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2018-10-11 20:28:11 +0300 |
---|---|---|
committer | rl1987 <rl1987@sdf.lonestar.org> | 2018-10-11 20:28:11 +0300 |
commit | 8b5ad246e81a8346b79d37052320753f87e22a04 (patch) | |
tree | c82fd1dc702b1e9add5954df9ba935cee4f137c3 /scripts/test/chutney-git-bisect.sh | |
parent | 391756f262c93d4361fb6189a3ba9704283f73aa (diff) | |
download | tor-8b5ad246e81a8346b79d37052320753f87e22a04.tar.gz tor-8b5ad246e81a8346b79d37052320753f87e22a04.zip |
Fix issues that shellcheck found in chutney-git-bisect.sh
Diffstat (limited to 'scripts/test/chutney-git-bisect.sh')
-rwxr-xr-x | scripts/test/chutney-git-bisect.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/test/chutney-git-bisect.sh b/scripts/test/chutney-git-bisect.sh index 8a3f2c70c8..dc1319a27a 100755 --- a/scripts/test/chutney-git-bisect.sh +++ b/scripts/test/chutney-git-bisect.sh @@ -20,7 +20,7 @@ if [ ! -z "$1" ]; then fi if [ ! -z "$2" ]; then - cd "$2" + cd "$2" || exit fi CHUTNEY_TEST_CMD="make test-network-all" @@ -54,9 +54,9 @@ while [ "$i" -le "$CHUTNEY_TRIES" ]; do echo "test '$CHUTNEY_TEST_CMD' succeeded after $i/$CHUTNEY_TRIES attempts, good" exit 0 fi - i=$[$i+1] + i=$((i+1)) done -i=$[$i-1] +i=$((i-1)) echo "test '$CHUTNEY_TEST_CMD' failed $i/$CHUTNEY_TRIES attempts, bad" exit 1 |