Browse Source

Fixed bug of build script;

tags/1.2.0^2
huanghaiquan 4 years ago
parent
commit
ff64089ea1
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      build/update.sh

+ 6
- 4
build/update.sh View File

@@ -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


Loading…
Cancel
Save