refactor: use REPO_NAMES in phase6_teardown.sh

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
S
2026-03-01 10:05:45 -05:00
parent b0a3b07f0b
commit ce77fab000

View File

@@ -14,11 +14,11 @@ source "${SCRIPT_DIR}/lib/common.sh"
load_env
require_vars GITEA_ADMIN_TOKEN GITEA_INTERNAL_URL GITEA_ORG_NAME \
GITHUB_USERNAME GITHUB_TOKEN \
REPO_1_NAME REPO_2_NAME REPO_3_NAME
REPO_NAMES
log_warn "=== Phase 6 Teardown: Push Mirrors ==="
REPOS=("$REPO_1_NAME" "$REPO_2_NAME" "$REPO_3_NAME")
read -ra REPOS <<< "$REPO_NAMES"
printf 'This will remove all push mirror configurations. Continue? [y/N] '
read -r confirm