Closed
Description
I'm looking to install OLM in a fresh new minikube. I go to the operatorhub.io page and it tells me to run install.sh to install OLM:
I run that and it does nothing. Silently exits with no messages, no errors, no nothing:
$ curl -sL https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.18.2/install.sh | bash -s v0.18.2
$
The problem is this: https://github.com/operator-framework/operator-lifecycle-manager/blob/v0.18.2/scripts/install.sh#L17-L18
kubectl get deployment olm-operator -n openshift-operator-lifecycle-manager -o=jsonpath='{.spec}' > /dev/null 2>&1
...
That silently exits the script because of the set -e
on line 6.
Suggest you either remove line 6 or refactor that kubectl call + if-stmt so it doesn't abort on non-0 exit code (which is what you typically will expect here because someone running this most likely doesn't have OLM yet).