From 992afae2a7befb91042e8a842b819129e3286c4b Mon Sep 17 00:00:00 2001 From: Zhicheng WANG Date: Tue, 1 Jan 2019 22:45:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=EF=BC=8C=E9=81=BF=E5=85=8D=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E5=85=8B=E9=9A=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aio/deploy-cn.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/aio/deploy-cn.sh b/aio/deploy-cn.sh index 0e867b37a6..9197c49d81 100755 --- a/aio/deploy-cn.sh +++ b/aio/deploy-cn.sh @@ -11,15 +11,15 @@ cd `dirname $0` yarn build ts-node ./tools/translator/bin/ssr.ts -rm -fr ng-docs.github.io +if [[ ! -d "/tmp/angular-cn" ]] +then + git clone git@github.com:ng-docs/ng-docs.github.io.git /tmp/angular-cn +fi -git clone git@github.com:ng-docs/ng-docs.github.io.git +cp -r dist/* /tmp/angular-cn/ -cp -r dist/* ./ng-docs.github.io/ +cd /tmp/angular-cn/ -cd ./ng-docs.github.io - -cp index.html 404.html git add . git commit --allow-empty -am "${commitMessage}"