We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5188bb4 commit 9e526daCopy full SHA for 9e526da
staging/operator-lifecycle-manager/scripts/install.sh
@@ -14,8 +14,7 @@ if [[ ${#@} -lt 1 || ${#@} -gt 2 ]]; then
14
exit 1
15
fi
16
17
-kubectl get deployment olm-operator -n openshift-operator-lifecycle-manager -o=jsonpath='{.spec}' > /dev/null 2>&1
18
-if [[ $? -eq 0 ]]; then
+if kubectl get deployment olm-operator -n openshift-operator-lifecycle-manager -o=jsonpath='{.spec}' > /dev/null 2>&1; then
19
echo "OLM is already installed in a different configuration. This is common if you are not running a vanilla Kubernetes cluster. Exiting..."
20
21
0 commit comments