更新: 2 个文件 - 2026-03-16 22:17:35
这个提交包含在:
8
.sync-gitea-cron.log
普通文件
8
.sync-gitea-cron.log
普通文件
@@ -0,0 +1,8 @@
|
||||
[94m[INFO][0m 初始化 Git 仓库...
|
||||
[93m[WARNING][0m Git 仓库已存在
|
||||
[94m[INFO][0m 远程仓库 URL 已更新
|
||||
[94m[INFO][0m 远程仓库已存在: hao/websafe-kb
|
||||
[93m[WARNING][0m 未提供 GITEA_TOKEN;推送时将使用本机已有认证方式
|
||||
[92m[SUCCESS][0m 初始化完成
|
||||
[94m[INFO][0m 检查更改...
|
||||
/Users/x/websafe/scripts/sync-gitea.sh: line 136: $1: unbound variable
|
||||
@@ -133,8 +133,9 @@ commit_changes() {
|
||||
local commit_msg="更新: ${changed_files} 个文件 - ${timestamp}"
|
||||
|
||||
# 如果提供了自定义提交信息
|
||||
if [ -n "$1" ]; then
|
||||
commit_msg="$1"
|
||||
local custom_msg="${1:-}"
|
||||
if [ -n "$custom_msg" ]; then
|
||||
commit_msg="$custom_msg"
|
||||
fi
|
||||
|
||||
git commit -m "$commit_msg"
|
||||
|
||||
在新工单中引用
屏蔽一个用户