Skip to content

Commit 7a7606a

Browse files
committed
fixing workspace issues
1 parent fe99c38 commit 7a7606a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

terraform/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ lock-provider:
2020
$(tf_cmd) providers lock -platform=darwin_arm64 -platform=darwin_amd64 -platform=linux_amd64 -platform=windows_amd64
2121

2222
workspace:
23-
( $(tf_cmd) workspace new $(ENVIRONMENT) || $(tf_cmd) workspace select $(ENVIRONMENT) ) && echo "Switched to workspace/environment: $(ENVIRONMENT)"
23+
@echo "Selecting or creating workspace: $(ENVIRONMENT)"
24+
@$(tf_cmd) workspace select $(ENVIRONMENT) || $(tf_cmd) workspace new $(ENVIRONMENT)
25+
@echo "Switched to workspace/environment: $(ENVIRONMENT)"
2426

2527
init:
2628
$(tf_cmd) init $(tf_state) -upgrade $(tf_vars)

0 commit comments

Comments
 (0)