From ff64089ea14fa474b4ccc405d374e1dd405ad34f Mon Sep 17 00:00:00 2001 From: huanghaiquan Date: Sun, 29 Dec 2019 04:37:26 +0800 Subject: [PATCH] Fixed bug of build script; --- build/update.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/build/update.sh b/build/update.sh index 8f52546f..1925d054 100755 --- a/build/update.sh +++ b/build/update.sh @@ -42,12 +42,13 @@ then VALUES=($(cat $LOCAL_CONFIG | awk -F '=' 'length($2)>0 { print $2}')) #匹配子模块 URL 配置名称的正则表达式 - REG="submodule[\.].*[\.]url" + # REG="submodule[\.].*[\.]url" #判断本地配置是否为空; - if [ ${#KEYS[@]} > 0 ] + echo "共有 ${#KEYS[@]} 项本地配置。。。" + if [ ${#KEYS[@]} -gt 0 ] then - for ((i=0; i<${#KEYS[@]}; i ++)); + for ((i=0; i<${#KEYS[@]}; i++)); do #执行本地化配置; echo "[$i]: git config ${KEYS[i]} ${VALUES[i]}" @@ -61,9 +62,10 @@ then ${RTN} $ERR fi done - + LOCALIZED=1 fi + echo "---------------- 完成子模块的本地化配置 ----------------" fi