chore: fix shellcheck findings across migration scripts
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
# shellcheck disable=SC2329
|
||||
|
||||
# =============================================================================
|
||||
# phase6_post_check.sh — Verify Phase 6 (GitHub Push Mirrors) succeeded
|
||||
@@ -38,6 +39,7 @@ for repo in "${REPOS[@]}"; do
|
||||
log_info "--- Checking repo: ${repo} ---"
|
||||
|
||||
# Check 1: Push mirror exists
|
||||
# shellcheck disable=SC2329
|
||||
check_mirror_exists() {
|
||||
local mirrors
|
||||
mirrors=$(gitea_api GET "/repos/${GITEA_ORG_NAME}/$1/push_mirrors")
|
||||
@@ -49,6 +51,7 @@ for repo in "${REPOS[@]}"; do
|
||||
|
||||
# Check 2: Latest commit SHA matches between Gitea and GitHub
|
||||
# Trigger a sync first, then compare HEAD commits
|
||||
# shellcheck disable=SC2329
|
||||
check_commit_sync() {
|
||||
# Trigger sync
|
||||
gitea_api POST "/repos/${GITEA_ORG_NAME}/$1/push_mirrors-sync" "" >/dev/null 2>&1 || true
|
||||
|
||||
Reference in New Issue
Block a user