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