From e6fc5f386774281c825ce32988f987ac7062c590 Mon Sep 17 00:00:00 2001 From: Ori Amizur <60868946+ori-amizur@users.noreply.github.com> Date: Tue, 7 Nov 2023 17:15:23 +0200 Subject: [PATCH] NO-JIRA: Allow the command in wait_for_cmd_amount to receive arguments (#5668) This was already assumed but it is not the case now --- deploy/operator/utils.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/operator/utils.sh b/deploy/operator/utils.sh index a191db17bb..051e0638d5 100644 --- a/deploy/operator/utils.sh +++ b/deploy/operator/utils.sh @@ -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() {