Skip to content

Commit

Permalink
make shellcheck happy
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Apr 29, 2024
1 parent 1385727 commit ea48c2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bats/foreman_helper.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]]
}

0 comments on commit ea48c2c

Please sign in to comment.