Bläddra i källkod

调整build目录

lizw 3 år sedan
förälder
incheckning
35856cf7d0
1 ändrade filer med 6 tillägg och 2 borttagningar
  1. 6 2
      build.sh

+ 6 - 2
build.sh

@@ -133,8 +133,12 @@ deployPush() {
   # 提交文件
   echo -e "$echoPrefix cd $pushPath $echoSuffix"
   cd "$pushPath"
-  git config user.name bot
-  git config user.name bot@git.com
+  if [ -n "$(git config user.name)" ]; then
+      echo -e "$echoPrefix git config user.name 'bot' $echoSuffix"
+      git config user.name 'bot'
+      echo -e "$echoPrefix git config user.name 'bot@git.com' $echoSuffix"
+      git config user.name 'bot@git.com'
+  fi
   echo -e "$echoPrefix git add -A $echoSuffix"
   git add -A
   if [ -n "$(git status -s)" ]; then