From fd5e5381c6c2d72b98cd5af041f75f6f4ee7c0d1 Mon Sep 17 00:00:00 2001 From: lizw Date: Wed, 29 Dec 2021 18:58:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=8F=82=E6=9E=97=20=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dsl/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dsl/build.sh b/dsl/build.sh index f501c94..e206927 100644 --- a/dsl/build.sh +++ b/dsl/build.sh @@ -179,7 +179,7 @@ deployPush() { echo "" } -isChange="1" # 仓库是否发生变化,0未:变化;非0:变化 +isChange="1" # 仓库是否发生变化,0:未变化;非0:变化 pullCode() { # Usage: pullCode "codePath" "gitUrl" "branch" "position" path=$1 # 代码保存路径 @@ -210,7 +210,7 @@ pullCode() { echo -e "$echoPrefix git checkout $branch $echoSuffix" git checkout $branch echo -e "$echoPrefix git pull $echoSuffix" - if [ "`git pull`" == "Already up-to-date." ] && [ $isChange == 1 ]; then + if [ "`git pull`" == "Already up-to-date." ] && [ $isChange == "1" ]; then isChange="0" fi echo ""