From f49767ab2699ff5bf8b91b59de98ebf563540187 Mon Sep 17 00:00:00 2001 From: otto <731554297@qq.com> Date: Tue, 23 May 2023 11:10:12 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E9=A1=B9=E7=9B=AE=E9=83=A8=E7=BD=B2):=20?= =?UTF-8?q?=E7=AE=80=E5=8C=96=E9=83=A8=E7=BD=B2=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-gitlink/auto_redeploy.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docker-gitlink/auto_redeploy.sh b/docker-gitlink/auto_redeploy.sh index 583438b85..205479987 100755 --- a/docker-gitlink/auto_redeploy.sh +++ b/docker-gitlink/auto_redeploy.sh @@ -8,11 +8,11 @@ current_env=$1 # 使用说明,用来提示输入参数 usage() { echo -e "\e[91m错误:必须传入环境参数 \e[0m" - echo "Usage: sh auto_redeploy.sh [test|prod] [auto_redeploy_modules|auto_redeploy_front]" + echo "Usage: sh auto_redeploy.sh [test|prod] [modules|front]" exit 1 } -auto_redeploy_modules(){ +modules(){ echo "拉取最新代码" git pull @@ -38,7 +38,7 @@ auto_redeploy_modules(){ ./deploy.sh "$current_env" modules } -auto_redeploy_front(){ +front(){ echo "自动部署前端" echo "进行前端编译" ./build.sh "$current_env" build_front @@ -61,11 +61,11 @@ esac # 根据输入参数,选择执行对应方法,不输入则执行使用说明 case "$2" in -"auto_redeploy_modules") - auto_redeploy_modules +"modules") + modules ;; -"auto_redeploy_front") - auto_redeploy_front +"front") + front ;; *) usage