From f1474baa180ef1640ce740be7a12190672f852ca Mon Sep 17 00:00:00 2001 From: kevin Date: Sun, 12 Apr 2026 03:24:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7=E5=AE=89=E8=A3=85=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 1f9bb41..9999189 100644 --- a/install.sh +++ b/install.sh @@ -12,8 +12,10 @@ LOG_PATH="/var/log/$APP_NAME" # 检测是否在工程目录内 if [ -d ".git" ] && [ -f "main.go" ]; then - echo "==> 检测到工程目录,直接使用当前代码" + echo "==> 检测到工程目录,更新代码..." PROJECT_DIR="$(pwd)" + git pull origin master + git submodule update --init --recursive else echo "==> 拉取工程代码..." cd /opt