From 88118aa2776649990bdf6da14bbc5b8788f6de09 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Fri, 10 Mar 2017 15:36:59 +0100 Subject: [PATCH] Don't switch to tag for snapshots --- 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 6a05b397..ba548ab1 100755 --- a/docs/src/main/asciidoc/ghpages.sh +++ b/docs/src/main/asciidoc/ghpages.sh @@ -344,7 +344,7 @@ done assert_properties set_default_props check_if_anything_to_sync -if [[ -z "${VERSION}" ]] ; then +if echo $VERSION | egrep -q 'SNAPSHOT' || [[ -z "${VERSION}" ]; then retrieve_current_branch else switch_to_tag