fix: 一键安装支持私有仓库登录

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-12 14:37:47 +08:00
co-authored by Claude Opus 4.6
parent 3919899bd5
commit 881aeda5bd
+9 -2
View File
@@ -10,8 +10,15 @@ if [ -d "tlbm-mcp" ]; then
git pull git pull
else else
echo "📥 克隆仓库..." 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 fi
echo "📦 安装依赖..." echo "📦 安装依赖..."