Skip to content

Commit b53d768

Browse files
jmazzitellifantapsody
authored andcommitted
install.sh should not abort if openshift olm is not installed
fixes: operator-framework#2210 Signed-off-by: John Mazzitelli <[email protected]>
1 parent 38177e4 commit b53d768

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/install.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ if [[ ${#@} -lt 1 || ${#@} -gt 2 ]]; then
1414
exit 1
1515
fi
1616

17-
kubectl get deployment olm-operator -n openshift-operator-lifecycle-manager -o=jsonpath='{.spec}' > /dev/null 2>&1
18-
if [[ $? -eq 0 ]]; then
17+
if kubectl get deployment olm-operator -n openshift-operator-lifecycle-manager -o=jsonpath='{.spec}' > /dev/null 2>&1; then
1918
echo "OLM is already installed in a different configuration. This is common if you are not running a vanilla Kubernetes cluster. Exiting..."
2019
exit 1
2120
fi

0 commit comments

Comments
 (0)