From 2df3e5937a33646f085efc1f78fd1fe37b550919 Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Fri, 28 Feb 2025 11:55:55 +0000 Subject: [PATCH] ci/openshift-ci: Fix script error The space was missing before `]`, so fix this and also swtich to double square brackets and variable braces Signed-off-by: stevenhorsman --- ci/openshift-ci/run_smoke_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/openshift-ci/run_smoke_test.sh b/ci/openshift-ci/run_smoke_test.sh index 1558fbc937..548c605de5 100755 --- a/ci/openshift-ci/run_smoke_test.sh +++ b/ci/openshift-ci/run_smoke_test.sh @@ -54,7 +54,7 @@ else oc apply -f "${script_dir}/smoke/service_kubernetes.yaml" # For some reason kcli's cluster lists external IP as internal IP, try both host=$(oc get nodes -o jsonpath='{.items[0].status.addresses[?(@.type=="ExternalIP")].address}') - [ -z "$host"] && host=$(oc get nodes -o jsonpath='{.items[0].status.addresses[?(@.type=="InternalIP")].address}') + [[ -z "${host}" ]] && host=$(oc get nodes -o jsonpath='{.items[0].status.addresses[?(@.type=="InternalIP")].address}') port=$(oc get service/http-server-service -o jsonpath='{.spec.ports[0].nodePort}') fi