From 8aad4299caf93974030aa87ddeace01b2757437e Mon Sep 17 00:00:00 2001 From: S Date: Sun, 1 Mar 2026 10:05:45 -0500 Subject: [PATCH] refactor: use REPO_NAMES in phase4_migrate_repos.sh Co-Authored-By: Claude Opus 4.6 --- phase4_migrate_repos.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phase4_migrate_repos.sh b/phase4_migrate_repos.sh index 83b369e..7a64d38 100755 --- a/phase4_migrate_repos.sh +++ b/phase4_migrate_repos.sh @@ -18,7 +18,7 @@ require_vars GITEA_ADMIN_TOKEN GITEA_BACKUP_ADMIN_TOKEN \ GITEA_INTERNAL_URL GITEA_BACKUP_INTERNAL_URL \ GITEA_ORG_NAME GITEA_ADMIN_USER GITEA_ADMIN_PASSWORD \ GITHUB_USERNAME GITHUB_TOKEN \ - REPO_1_NAME REPO_2_NAME REPO_3_NAME \ + REPO_NAMES \ MIGRATE_ISSUES MIGRATE_LABELS MIGRATE_MILESTONES MIGRATE_WIKI \ GITEA_BACKUP_MIRROR_INTERVAL @@ -45,7 +45,7 @@ phase_header 4 "Migrate Repos + Fedora Mirrors" # Build list of repos from REPO_N_NAME env vars # Using an array rather than hardcoding 3 loops keeps it flexible. # --------------------------------------------------------------------------- -REPOS=("$REPO_1_NAME" "$REPO_2_NAME" "$REPO_3_NAME") +read -ra REPOS <<< "$REPO_NAMES" TOTAL=${#REPOS[@]} SUCCESS=0