diff --git a/docs/src/main/asciidoc/ghpages.sh b/docs/src/main/asciidoc/ghpages.sh index ba548ab1..6429e8f7 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 echo $VERSION | egrep -q 'SNAPSHOT' || [[ -z "${VERSION}" ]; then +if echo $VERSION | egrep -q 'SNAPSHOT' || [[ -z "${VERSION}" ]]; then retrieve_current_branch else switch_to_tag