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