From 9527df3bdccf1e3ba0e955210c243b366e506134 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edu=20G=C3=B3mez=20Escandell?= Date: Tue, 7 May 2024 12:00:14 +0200 Subject: [PATCH] Fix cluster-sync wait_cdi_crd_installed timeout check (#3245) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This line was writing to file `./0` instead of performing a greater-than comparison. Signed-off-by: Edu Gómez Escandell --- cluster-sync/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster-sync/install.sh b/cluster-sync/install.sh index a7f47ac7af..5cff75b2c7 100644 --- a/cluster-sync/install.sh +++ b/cluster-sync/install.sh @@ -19,7 +19,7 @@ function install_cdi { function wait_cdi_crd_installed { timeout=$1 crd_defined=0 - while [ $crd_defined -eq 0 ] && [ $timeout > 0 ]; do + while [ $crd_defined -eq 0 ] && [ $timeout -gt 0 ]; do crd_defined=$(_kubectl get customresourcedefinition| grep cdis.cdi.kubevirt.io | wc -l) sleep 1 timeout=$(($timeout-1))