Skip to content

Commit dad9c0a

Browse files
committed
Remove -o=jsonpath='{.spec}'
Signed-off-by: Ying Mo <[email protected]>
1 parent ef6ae6a commit dad9c0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: scripts/install.sh

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

17-
if kubectl get deployment olm-operator -n openshift-operator-lifecycle-manager -o=jsonpath='{.spec}' > /dev/null 2>&1; then
17+
if kubectl get deployment olm-operator -n openshift-operator-lifecycle-manager > /dev/null 2>&1; then
1818
echo "OLM is already installed in a different configuration. This is common if you are not running a vanilla Kubernetes cluster. Exiting..."
1919
exit 1
2020
fi
@@ -24,7 +24,7 @@ base_url="${2:-${default_base_url}}"
2424
url="${base_url}/${release}"
2525
namespace=olm
2626

27-
if kubectl get deployment olm-operator -n ${namespace} -o=jsonpath='{.spec}' > /dev/null 2>&1; then
27+
if kubectl get deployment olm-operator -n ${namespace} > /dev/null 2>&1; then
2828
echo "OLM is already installed in ${namespace} namespace. Exiting..."
2929
exit 1
3030
fi

0 commit comments

Comments
 (0)