From 8d7ee9f53a89733d03a0fa7249e10f2a4660471e Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Thu, 18 Aug 2016 12:32:55 +0200 Subject: [PATCH] Fixed the wrong script --- docs/src/main/asciidoc/ghpages.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/ghpages.sh b/docs/src/main/asciidoc/ghpages.sh index eb4d811d..c3660bf5 100755 --- a/docs/src/main/asciidoc/ghpages.sh +++ b/docs/src/main/asciidoc/ghpages.sh @@ -114,7 +114,6 @@ function add_docs_from_target() { # Copies the docs by using the retrieved properties from Maven build function copy_docs_for_current_version() { - mkdir -p ${DESTINATION_REPO_FOLDER}/${CURRENT_BRANCH} if [[ "${CURRENT_BRANCH}" == "master" ]] ; then echo -e "Current branch is master - will copy the current docs only to the root folder" for f in ${ROOT_FOLDER}/docs/target/generated-docs/*; do @@ -127,6 +126,7 @@ function copy_docs_for_current_version() { done COMMIT_CHANGES="yes" else + mkdir -p ${DESTINATION_REPO_FOLDER}/${CURRENT_BRANCH} echo -e "Current branch is [${CURRENT_BRANCH}]" # http://stackoverflow.com/questions/29300806/a-bash-script-to-check-if-a-string-is-present-in-a-comma-separated-list-of-strin if [[ ",${WHITELISTED_BRANCHES_VALUE}," = *",${CURRENT_BRANCH},"* ]] ; then