| 123456789101112131415161718192021222324252627282930313233343536 |
- #!/bin/bash
- # 克隆 go-kit 仓库(如果不存在)
- echo ""
- if [ ! -d "/workspace/dev/backend/work/go-kit" ]; then
- echo "正在克隆 go-kit 仓库..."
- if git clone root@git.ooo.ink:root/go-kit.git /workspace/dev/backend/work/go-kit; then
- echo "✅ go-kit 仓库克隆完成"
- else
- echo "❌ go-kit 仓库克隆失败"
- exit 1
- fi
- else
- echo "✅ go-kit 仓库已存在,跳过克隆"
- fi
- echo ""
- # 安装 MySQL CLI 工具
- echo ""
- if [ -f "/workspace/shell-kit/setup-mysql-cli.sh" ]; then
- chmod +x /workspace/shell-kit/setup-mysql-cli.sh
- /workspace/shell-kit/setup-mysql-cli.sh
- else
- echo "⚠️ 警告:MySQL CLI 安装脚本不存在,跳过 MySQL CLI 安装"
- fi
- echo ""
- # 安装 gentool 工具
- echo ""
- if [ -f "/workspace/shell-kit/setup-gentool.sh" ]; then
- chmod +x /workspace/shell-kit/setup-gentool.sh
- /workspace/shell-kit/setup-gentool.sh
- else
- echo "⚠️ 警告:gentool 安装脚本不存在,跳过 gentool 安装"
- fi
- echo ""
|