From 0fc57e04576c6636135e42439e0545395a8b535e Mon Sep 17 00:00:00 2001 From: John Mazzitelli Date: Mon, 21 Jun 2021 11:09:32 -0400 Subject: [PATCH] install.sh should not abort if openshift olm is not installed fixes: https://github.com/operator-framework/operator-lifecycle-manager/issues/2210 Signed-off-by: John Mazzitelli --- scripts/install.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index c6476a0a88..35c65b35ce 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -14,8 +14,7 @@ if [[ ${#@} -lt 1 || ${#@} -gt 2 ]]; then exit 1 fi -kubectl get deployment olm-operator -n openshift-operator-lifecycle-manager -o=jsonpath='{.spec}' > /dev/null 2>&1 -if [[ $? -eq 0 ]]; then +if kubectl get deployment olm-operator -n openshift-operator-lifecycle-manager -o=jsonpath='{.spec}' > /dev/null 2>&1; then echo "OLM is already installed in a different configuration. This is common if you are not running a vanilla Kubernetes cluster. Exiting..." exit 1 fi