Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Only delete files if they exist #224

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tools/index_tools/tang_uninstall_catalog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
# limitations under the License.
#

oc delete -f tang_subscription.yaml
oc delete -f tang_catalog_source.yaml
test -f tang_subscription.yaml && oc delete -f tang_subscription.yaml
test -f tang_catalog_source.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