From aea2cab61949746631aec8c8370dde6087ac211a Mon Sep 17 00:00:00 2001 From: Zhicheng WANG Date: Wed, 2 Jan 2019 13:17:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=94=B9=E7=94=A8=E5=AD=90=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E4=BD=9C=E4=B8=BA=E5=B7=A5=E4=BD=9C=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=EF=BC=8C/tmp=20=E7=9B=AE=E5=BD=95=E5=9C=A8=20mac=20=E4=B8=8B?= =?UTF-8?q?=E6=98=AF=E5=A4=A7=E5=B0=8F=E5=86=99=E4=B8=8D=E6=95=8F=E6=84=9F?= =?UTF-8?q?=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aio/deploy-cn.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aio/deploy-cn.sh b/aio/deploy-cn.sh index 9197c49d81..0e45453098 100755 --- a/aio/deploy-cn.sh +++ b/aio/deploy-cn.sh @@ -11,14 +11,14 @@ cd `dirname $0` yarn build ts-node ./tools/translator/bin/ssr.ts -if [[ ! -d "/tmp/angular-cn" ]] +if [[ ! -d "./ng-docs.github.io" ]] then - git clone git@github.com:ng-docs/ng-docs.github.io.git /tmp/angular-cn + git clone git@github.com:ng-docs/ng-docs.github.io.git ./ng-docs.github.io fi -cp -r dist/* /tmp/angular-cn/ +cd ./ng-docs.github.io -cd /tmp/angular-cn/ +cp -r dist/* . git add . git commit --allow-empty -am "${commitMessage}"