From 3a22f26b2d86437b7da4cd64ff6468ecf4785c7e Mon Sep 17 00:00:00 2001 From: perry Date: Wed, 20 Apr 2016 16:38:12 -0500 Subject: [PATCH] chore(dgeni): test for api DIR before clearining it --- scripts/docs/deploy.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/docs/deploy.sh b/scripts/docs/deploy.sh index a8c2a41fc6..0266055292 100755 --- a/scripts/docs/deploy.sh +++ b/scripts/docs/deploy.sh @@ -37,7 +37,9 @@ function run { ./node_modules/.bin/gulp demos --production=true # process new docs - rm -R $DOCS_DEST/api + if [ -d "$DOCS_DEST/api" ]; then + rm -R $DOCS_DEST/api + fi ./node_modules/.bin/gulp docs --doc-version="$VERSION_NAME" # compile sass vars json for ionic-site docs