mirror of
https://gitee.com/jeequan/jeepay.git
synced 2026-09-21 04:59:49 +08:00
fix(install): git clone 源码后加 require_ok,避免 tag 不存在被后续步骤吞错
V3.2.8 tag 未同步到 gitee 时,git clone --branch V3.2.8 失败,脚本继续 执行到 [3] 才以 'cd: /jeepayhomes/sources/jeepay/docs/install: No such file or directory' / '复制 MySQL 配置 my.cnf' 爆错,误导用户以为是 MySQL 步骤问题。补上 require_ok 后 clone 失败立刻退出并打印明确原因与规避 方式(jeepayRef=master 覆盖)。
This commit is contained in:
@@ -411,6 +411,7 @@ jeepayRef=${jeepayRef:-V3.2.7}
|
||||
echo "[2] 拉取项目源代码文件 (ref=$jeepayRef).... "
|
||||
cd $rootDir/sources
|
||||
git clone --branch "$jeepayRef" --depth 1 https://gitee.com/jeequan/jeepay.git
|
||||
require_ok $? "拉取 jeepay 源码 (ref=$jeepayRef)。若 tag 尚未推送到 gitee,请改用 jeepayRef=master 覆盖或稍后重试。"
|
||||
echo "[2] Done. "
|
||||
|
||||
#源码中install.sh文件目录
|
||||
|
||||
Reference in New Issue
Block a user