Skip to content

Commit cd40303

Browse files
Merge pull request #2211 from jmazzitelli/fix-install-sh
install.sh should not abort if openshift olm is not installed
2 parents 74881ec + fb6e5e7 commit cd40303

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/install.sh

Lines changed: 1 addition & 2 deletions
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)