refactor: use REPO_NAMES in phase4_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 60686d681e
commit 49268a4674

View File

@@ -15,11 +15,11 @@ load_env
require_vars GITEA_ADMIN_TOKEN GITEA_BACKUP_ADMIN_TOKEN \ require_vars GITEA_ADMIN_TOKEN GITEA_BACKUP_ADMIN_TOKEN \
GITEA_INTERNAL_URL GITEA_BACKUP_INTERNAL_URL \ GITEA_INTERNAL_URL GITEA_BACKUP_INTERNAL_URL \
GITEA_ORG_NAME GITEA_ADMIN_USER \ GITEA_ORG_NAME GITEA_ADMIN_USER \
REPO_1_NAME REPO_2_NAME REPO_3_NAME REPO_NAMES
log_warn "=== Phase 4 Teardown: Repos + Mirrors ===" log_warn "=== Phase 4 Teardown: Repos + Mirrors ==="
REPOS=("$REPO_1_NAME" "$REPO_2_NAME" "$REPO_3_NAME") read -ra REPOS <<< "$REPO_NAMES"
printf 'This will DELETE all migrated repos and mirrors. Continue? [y/N] ' printf 'This will DELETE all migrated repos and mirrors. Continue? [y/N] '
read -r confirm read -r confirm