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
This was already assumed but it is not the case now
  • Loading branch information
ori-amizur committed Nov 6, 2023
1 parent ea87037 commit a6754d0
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 a6754d0

Please sign in to comment.