File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -457,8 +457,8 @@ build-tools: ## Download & build all the tools locally if necessary.
457457# https://github.com/operator-framework/community-operators/blob/7f1438c/docs/packaging-operator.md#updating-your-existing-operator
458458.PHONY : catalog-build
459459catalog-build : opm # # Build a file-based catalog image.
460- # Remove the catalog directory and Dockerfile
461- -rm -r ${CATALOG_DIR} ${CATALOG_DOCKERFILE}
460+ # Remove the catalog directory and Dockerfile if they exist
461+ -rm -rf ${CATALOG_DIR} ${CATALOG_DOCKERFILE}
462462 @mkdir -p ${CATALOG_DIR}
463463 $(OPM ) generate dockerfile ${CATALOG_DIR}
464464 $(OPM ) init ${OPERATOR_NAME} \
@@ -472,7 +472,7 @@ catalog-build: opm ## Build a file-based catalog image.
472472 $(OPM ) validate ${CATALOG_DIR}
473473 docker build . -f ${CATALOG_DOCKERFILE} -t ${CATALOG_IMG}
474474 # Clean up the catalog directory and Dockerfile
475- rm -r ${CATALOG_DIR} ${CATALOG_DOCKERFILE}
475+ - rm -rf ${CATALOG_DIR} ${CATALOG_DOCKERFILE}
476476
477477.PHONY : catalog-push
478478catalog-push : # # Push a catalog image.
You can’t perform that action at this time.
0 commit comments