From 87b9c43ff27aa88d8b094eb4d4f4d8259f60a01d Mon Sep 17 00:00:00 2001
From: "qingwei.li" <cinwell.li@gmail.com>
Date: Sat, 29 Oct 2016 14:58:59 +0800
Subject: [PATCH] Deploy-ci: fix shell

---
 build/deploy-ci.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/build/deploy-ci.sh b/build/deploy-ci.sh
index 955955a37..7a41ff3b6 100644
--- a/build/deploy-ci.sh
+++ b/build/deploy-ci.sh
@@ -1,13 +1,13 @@
 #! /bin/sh
 mkdir temp_web
-git config user.name "element_bot"
-git config user.email "element_bot"
 
 # build dev site
 if [ "$TRAVIS_BRANCH" = "master" ] && [ "$GH_TOKEN" ]; then
   CI_ENV=/dev/ ./node_modules/.bin/cooking build -c build/cooking.demo.js
   cd temp_web
   git clone https://$GH_TOKEN@github.com/ElementUI/dev.git && cd dev
+  git config user.name "element_bot"
+  git config user.email "element_bot"
   rm -rf *
   cp -rf ../../examples/element-ui/** .
   git add -A .
@@ -21,6 +21,8 @@ if [ "$TRAVIS_TAG" ] && [ "$GH_TOKEN" ]; then
   npm run dist
   cd temp_web
   git clone https://$GH_TOKEN@github.com/ElementUI/lib.git && cd lib
+  git config user.name "element_bot"
+  git config user.email "element_bot"
   rm -rf *
   cp -rf ../../lib/** .
   git add -A .
@@ -35,6 +37,8 @@ if [ "$TRAVIS_TAG" ] && [ "$GH_TOKEN" ]; then
   npm run deploy
   cd temp_web
   git clone https://$GH_TOKEN@github.com/ElemeFE/element.git && cd element
+  git config user.name "element_bot"
+  git config user.email "element_bot"
   git checkout gh-pages
   rm -rf *
   cp -rf ../../examples/element-ui/** .