chore: fix shellcheck findings across migration scripts
This commit is contained in:
@@ -60,7 +60,7 @@ for repo in "${REPOS[@]}"; do
|
||||
|
||||
# Construct clone URL with embedded token for auth
|
||||
# Format: http://token:TOKEN@host:port/org/repo.git
|
||||
CLONE_URL=$(echo "${GITEA_INTERNAL_URL}" | sed "s|://|://${GITEA_ADMIN_USER}:${GITEA_ADMIN_TOKEN}@|")
|
||||
CLONE_URL="${GITEA_INTERNAL_URL%%://*}://${GITEA_ADMIN_USER}:${GITEA_ADMIN_TOKEN}@${GITEA_INTERNAL_URL#*://}"
|
||||
log_info "Cloning ${repo}..."
|
||||
git clone -q "${CLONE_URL}/${GITEA_ORG_NAME}/${repo}.git" "$CLONE_DIR"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user