Fix cluster-sync wait_cdi_crd_installed timeout check (#3245)

This line was writing to file `./0` instead of performing a greater-than
comparison.

Signed-off-by: Edu Gómez Escandell <egomez@redhat.com>
This commit is contained in:
Edu Gómez Escandell 2024-05-07 12:00:14 +02:00 committed by GitHub
parent e0a7544d99
commit 9527df3bdc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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))