Skip to content

Commit dbfd2d1

Browse files
committed
Update script for an output path
1 parent 0d329b0 commit dbfd2d1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

scripts/verificar_orfaos.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44
PROJECT_ID="observatudo-infra"
55
EXPECTED_LABELS=("infra-base" "dns-zones-observatudo" "observatudo-www-app")
66

7-
# Arquivo temporário para armazenar todos os recursos
8-
ALL_ASSETS_FILE="all-assets.json"
9-
ORPHANS_FILE="possible-orphans.json"
7+
# Diretório de saída
8+
OUTPUT_DIR="output"
9+
mkdir -p "$OUTPUT_DIR"
10+
11+
# Arquivos
12+
ALL_ASSETS_FILE="$OUTPUT_DIR/all-assets.json"
13+
ORPHANS_FILE="$OUTPUT_DIR/possible-orphans.json"
1014

1115
echo "📦 Coletando todos os recursos do projeto: $PROJECT_ID..."
1216
gcloud asset search-all-resources --project="$PROJECT_ID" --format=json > "$ALL_ASSETS_FILE"

0 commit comments

Comments
 (0)