From ea48c2c9e4aad3fb5c4815503773623f1311f85c Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 29 Apr 2024 13:31:03 +0200 Subject: [PATCH] make shellcheck happy --- bats/foreman_helper.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bats/foreman_helper.bash b/bats/foreman_helper.bash index e9c8151d7..83978bd0e 100644 --- a/bats/foreman_helper.bash +++ b/bats/foreman_helper.bash @@ -153,12 +153,12 @@ tWaitForTask() { tHammerPing() { local next_wait_time=0 - until [ "${status:-1}" -eq 0 -o $next_wait_time -eq 12 ]; do + until [[ "${status:-1}" -eq 0 || $next_wait_time -eq 12 ]]; do run hammer --reload-cache ping [[ $status -eq 0 ]] || sleep $(( next_wait_time++ )) done echo "${output}" - [ $status -eq 0 ] + [[ "$status" -eq 0 ]] }