You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
-
- #调用当前脚本目录下 env.sh 脚本,设置环境变量,处理当前传入参数;
- if [ ! $ENV_SHELL ]
- then
- source `dirname $0`/env.sh "$*"
- fi
-
- #初始化变量 SUBMODULES_UPDATED
- if [ ! $SUBMODULES_UPDATED ]
- then
- SUBMODULES_UPDATED=0
- fi
-
- if [ $SUBMODULES_UPDATED == 1 ]
- then
- echo "代码库已经最新,略过更新操作。。。"
- else
-
- echo "---------------- 更新代码库 ----------------"
- cd $BASE_DIR
- git submodule update --init --recursive
-
- #标记代码已经更新;
- SUBMODULES_UPDATED=1
-
- echo "---------------- 完成代码库更新 ----------------"
- fi
|