From 9f64c3eb8a47073f563d8c1d379de22885a7a8c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E6=A3=AE=E6=9E=97?= Date: Thu, 23 Apr 2026 11:48:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(install):=20git=20clone=20=E6=BA=90?= =?UTF-8?q?=E7=A0=81=E5=90=8E=E5=8A=A0=20require=5Fok=EF=BC=8C=E9=81=BF?= =?UTF-8?q?=E5=85=8D=20tag=20=E4=B8=8D=E5=AD=98=E5=9C=A8=E8=A2=AB=E5=90=8E?= =?UTF-8?q?=E7=BB=AD=E6=AD=A5=E9=AA=A4=E5=90=9E=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 覆盖)。 --- docs/install/install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/install/install.sh b/docs/install/install.sh index 542d68e..65e25d0 100644 --- a/docs/install/install.sh +++ b/docs/install/install.sh @@ -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文件目录