From 2903dffc5a7188decae34f6b9e6a594af7ddbf96 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 phase7_teardown.sh Co-Authored-By: Claude Opus 4.6 --- phase7_teardown.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phase7_teardown.sh b/phase7_teardown.sh index 3592a6a..27d3ea8 100755 --- a/phase7_teardown.sh +++ b/phase7_teardown.sh @@ -12,11 +12,11 @@ source "${SCRIPT_DIR}/lib/common.sh" load_env require_vars GITEA_ADMIN_TOKEN GITEA_INTERNAL_URL GITEA_ORG_NAME \ - REPO_1_NAME REPO_2_NAME REPO_3_NAME PROTECTED_BRANCH + REPO_NAMES PROTECTED_BRANCH log_warn "=== Phase 7 Teardown: Branch Protection ===" -REPOS=("$REPO_1_NAME" "$REPO_2_NAME" "$REPO_3_NAME") +read -ra REPOS <<< "$REPO_NAMES" printf 'This will remove branch protection for "%s" on all repos. Continue? [y/N] ' "$PROTECTED_BRANCH" read -r confirm