Skip to content

Commit

Permalink
tell the user what is going to happen
Browse files Browse the repository at this point in the history
  • Loading branch information
jfchevrette committed Dec 19, 2024
1 parent 91aa5af commit bd4d36d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dev-infrastructure/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ region: region.wait regional.rg

region.clean:
@if [ "$$(az group exists --name $(REGIONAL_RESOURCEGROUP))" = "true" ]; then \
echo "Will delete Azure resource group $(REGIONAL_RESOURCEGROUP)"; \
az group delete -g $(REGIONAL_RESOURCEGROUP); \
fi
.PHONY: region.clean
Expand Down Expand Up @@ -291,6 +292,7 @@ svc.dev-role-assignments:

svc.clean:
@if [ "$$(az group exists --name $(SVC_RESOURCEGROUP))" = "true" ]; then \
echo "Will delete Azure resource group $(SVC_RESOURCEGROUP)"; \
az group delete -g $(SVC_RESOURCEGROUP); \
fi
.PHONY: svc.clean
Expand Down Expand Up @@ -378,6 +380,7 @@ mgmt.what-if: mgmt.rg

mgmt.clean:
@if [ "$$(az group exists --name $(MGMT_RESOURCEGROUP))" = "true" ]; then \
echo "Will delete Azure resource group $(MGMT_RESOURCEGROUP)"; \
az group delete -g $(MGMT_RESOURCEGROUP); \
fi
.PHONY: mgmt.clean
Expand Down

0 comments on commit bd4d36d

Please sign in to comment.