Skip to content

Commit 9e15a73

Browse files
committed
Fix destroy script
1 parent 6e78307 commit 9e15a73

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/infrastructure/destroy/destroy-redundant-workspaces.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,11 @@ function _destroy_redundant_workspaces() {
3737
workspaces=$(aws s3 ls "$bucket" --no-paginate | awk '{print $NF}' | sed 's:/$::')
3838

3939
# get JIRA ID from branch name
40+
ENVIRONMENT="dev"
4041
if [[ $BRANCH_NAME =~ feature\/(PI-[0-9]+)[-_] ]]; then
4142
workspace_id="${BASH_REMATCH[1]}"
42-
ENVIRONMENT="ref"
4343
elif [[ $BRANCH_NAME == *release/* ]]; then
4444
workspace_id="${BRANCH_NAME##*release/}"
45-
ENVIRONMENT="dev"
4645
fi
4746
echo "The workspace ID is: $workspace_id"
4847
echo "Destroying workspaces in: $ENVIRONMENT"

0 commit comments

Comments
 (0)