Skip to content

Commit

Permalink
shell lint ok
Browse files Browse the repository at this point in the history
  • Loading branch information
Ant0wan committed Oct 19, 2023
1 parent 939a72e commit 3b49924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bashrc.d/terraform
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ function clean_tf_ws() {
for ws in ${workspaces[@]}
do
echo "Checking: $ws"
if ! TF_WORKSPACE=$ws terraform state list
if ! TF_WORKSPACE="$ws" terraform state list
then
TF_WORKSPACE=default terraform workspace delete $ws
TF_WORKSPACE=default terraform workspace delete "$ws"
fi
done
}
Expand Down

0 comments on commit 3b49924

Please sign in to comment.