From c5bb5ced10cd7af57582da972b928a5ac94d5969 Mon Sep 17 00:00:00 2001 From: songtianlun Date: Fri, 3 Jan 2025 17:32:21 +0800 Subject: [PATCH] feat: add success repository logging - Include logging for successful repositories in the output - Enhance user feedback by listing both successful and failed repositories This change improves the visibility of the repository mirroring process by providing a clear distinction between successful and failed operations. Users can now easily identify which repositories were successfully processed, thus enhancing the overall usability of the script. --- main.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.sh b/main.sh index 7687f85..2c8f3f2 100644 --- a/main.sh +++ b/main.sh @@ -82,6 +82,9 @@ $(cat "${LOG_FILE}")" 失败的仓库: $(echo "$stats" | jq -r '.details.failed_repos[]' | sed 's/^/- /') + 成功的仓库: + $(echo "$stats" | jq -r '.details.success_repos[]' | sed 's/^/- /') + 详细日志 (最后 50 行): $(tail -n 50 "$LOG_FILE")" else