|
@@ -4,32 +4,23 @@ set -e
|
|
|
|
|
|
codePath=/home/www/deploy/wms8_haerbing
|
|
|
gitUrlArr=(
|
|
|
- "http://git.galaxis.yvanui.com/wms8/wms8-bench.git"
|
|
|
- "http://git.galaxis.yvanui.com/wms8/wms-core.git"
|
|
|
- "http://git.yvanui.com/lizhiwei/yvan-framework.git"
|
|
|
+ "https://wms-gitlab.sypm.cn:7878/kaileshi/wms8-bench.git"
|
|
|
)
|
|
|
|
|
|
branchArr=(
|
|
|
- "shuyu_qingdao"
|
|
|
- "shuyu_qingdao"
|
|
|
- "master"
|
|
|
+ "main"
|
|
|
)
|
|
|
positionArr=(
|
|
|
"."
|
|
|
- "wms-core"
|
|
|
- "yvan-framework"
|
|
|
)
|
|
|
# 是否需要构建,-1:自动;0:不需要;1:需要
|
|
|
needBuild=(
|
|
|
"1"
|
|
|
-"1"
|
|
|
-"1"
|
|
|
)
|
|
|
|
|
|
echoPrefix="\033[36m+"
|
|
|
echoSuffix="\033[0m"
|
|
|
|
|
|
-
|
|
|
# 强制覆盖本地的代码 git fetch --all && git reset --hard origin/master
|
|
|
isChange="1" # 仓库是否发生变化,0:未变化;非0:变化
|
|
|
pullCode() {
|