Skip to content

Commit

Permalink
NO-JIRA: Allow the command in wait_for_cmd_amount to receive arguments (
Browse files Browse the repository at this point in the history
#5668)

This was already assumed but it is not the case now
  • Loading branch information
ori-amizur committed Nov 7, 2023
1 parent 8eca4e2 commit e6fc5f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/operator/utils.sh
Expand Up @@ -123,10 +123,10 @@ function wait_for_cmd_amount() {
interval="$2"
cmd="$3"

until [ $(${cmd} | wc -l) -eq ${amount} ]; do
until [ $(${cmd} "${@:4}" | wc -l) -eq ${amount} ]; do
sleep ${interval}
done
echo "done" $(${cmd} | wc -l)
echo "done" $(${cmd} "${@:4}" | wc -l)
}

function wait_for_boolean_field() {
Expand Down

0 comments on commit e6fc5f3

Please sign in to comment.