Skip to content

Commit 6c253ff

Browse files
authored
Update set-up-terraform-remote-state.sh
ignore output from the test commands
1 parent d9419f6 commit 6c253ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/set-up-terraform-remote-state.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ if [[ "$LOWER_CASE_RESPONSE" == "yes" || "$LOWER_CASE_RESPONSE" == "y" ]]; then
4545
printf "#######################################################################\n\n"
4646
if [[ $(command -v az) ]]; then
4747
# Check and Create a resource group
48-
if az group exists --name "$RESOURCE_GROUP_NAME"; then
48+
if az group exists --name "$RESOURCE_GROUP_NAME" &>/dev/null; then
4949
echo "-> Resource group with name $RESOURCE_GROUP_NAME already exists"
5050
else
5151
az group create --name "$RESOURCE_GROUP_NAME" --location "$LOCATION"

0 commit comments

Comments
 (0)