diff --git a/tools/index_tools/tang_uninstall_catalog.sh b/tools/index_tools/tang_uninstall_catalog.sh index 2e87aa7a..4829a132 100755 --- a/tools/index_tools/tang_uninstall_catalog.sh +++ b/tools/index_tools/tang_uninstall_catalog.sh @@ -17,3 +17,6 @@ oc delete -f tang_subscription.yaml oc delete -f tang_catalog_source.yaml +oc get csv -nopenshift-operators +csv=$(oc get csv -n openshift-operators | grep -v NAME | head | awk '{print $1}') +test -z "${csv}" || oc delete csv "${csv}" -n openshift-operators