mirror of
https://github.com/kubevirt/containerized-data-importer.git
synced 2025-06-03 06:30:22 +00:00
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:
parent
e0a7544d99
commit
9527df3bdc
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user