From 5540664861833214b2a234fe4217bdbf12491d07 Mon Sep 17 00:00:00 2001 From: Stephen Sawchuk Date: Thu, 24 Sep 2015 16:56:01 -0400 Subject: [PATCH] exit early if docs already built --- scripts/release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/release.sh b/scripts/release.sh index dba9018fc7d..2555e0dbe78 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -27,7 +27,7 @@ npm run coveralls npm run docs git submodule add -f -b gh-pages https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME} ghpages # copy set of json to tag folder -mkdir ghpages/json/${TRAVIS_TAG} +test -d "ghpages/json/${TRAVIS_TAG}" && exit 0 || mkdir ghpages/json/${TRAVIS_TAG} cp -R docs/json/master/* ghpages/json/${TRAVIS_TAG} cd ghpages git add json/${TRAVIS_TAG}