From 881aeda5bd4bfd3fabea54a64e66d231fc0a5096 Mon Sep 17 00:00:00 2001 From: JunWang Date: Tue, 12 May 2026 14:37:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=80=E9=94=AE=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=A7=81=E6=9C=89=E4=BB=93=E5=BA=93=E7=99=BB?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- install.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index b9cff9c..6fc047d 100755 --- a/install.sh +++ b/install.sh @@ -10,8 +10,15 @@ if [ -d "tlbm-mcp" ]; then git pull else echo "📥 克隆仓库..." - git clone https://git.atomdancing.com/AtomDancing/tlbm-mcp.git - cd tlbm-mcp + # 先尝试公开克隆,失败则提示登录 + if git clone https://git.atomdancing.com/AtomDancing/tlbm-mcp.git 2>/dev/null; then + cd tlbm-mcp + else + echo "⚠️ 仓库需要登录,请输入 Gitea 用户名:" + read -r username + git clone "https://${username}@git.atomdancing.com/AtomDancing/tlbm-mcp.git" + cd tlbm-mcp + fi fi echo "📦 安装依赖..."