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