瀏覽代碼

大参林 服务构建

lizw 3 年之前
父節點
當前提交
fd5e5381c6
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      dsl/build.sh

+ 2 - 2
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 ""