Fixed the retrieval of current branch

This commit is contained in:
Marcin Grzejszczak
2017-03-17 09:43:26 +01:00
parent 03fd279df1
commit ef8189dc88

View File

@@ -344,11 +344,11 @@ done
assert_properties
set_default_props
check_if_anything_to_sync
retrieve_current_branch
if echo $VERSION | egrep -q 'SNAPSHOT' || [[ -z "${VERSION}" ]]; then
CLONE=""
VERSION=""
echo "You've provided a version variable but it's a snapshot one. Due to this will not clone spring-cloud-static and publish docs over there"
retrieve_current_branch
else
switch_to_tag
fi