We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9419f6 commit 6c253ffCopy full SHA for 6c253ff
scripts/set-up-terraform-remote-state.sh
@@ -45,7 +45,7 @@ if [[ "$LOWER_CASE_RESPONSE" == "yes" || "$LOWER_CASE_RESPONSE" == "y" ]]; then
45
printf "#######################################################################\n\n"
46
if [[ $(command -v az) ]]; then
47
# Check and Create a resource group
48
- if az group exists --name "$RESOURCE_GROUP_NAME"; then
+ if az group exists --name "$RESOURCE_GROUP_NAME" &>/dev/null; then
49
echo "-> Resource group with name $RESOURCE_GROUP_NAME already exists"
50
else
51
az group create --name "$RESOURCE_GROUP_NAME" --location "$LOCATION"
0 commit comments