diff --git a/scripts/get-preview-version.sh b/scripts/get-preview-version.sh index 3d7f1e4fd..09a4b7557 100755 --- a/scripts/get-preview-version.sh +++ b/scripts/get-preview-version.sh @@ -17,16 +17,6 @@ set -e -export branch=$(git status --branch --porcelain | cut -d' ' -f2) - -if [[ $branch =~ main ]] -then - printf "On branch main, continuing\n" 1>&2 -else - printf "Not branch main, bailing out\n" 1>&2 - exit 2 -fi - export REVISION=$(mvn help:evaluate -Dexpression=revision -q -DforceStdout) if [[ $REVISION =~ ([0-9]+)\.([0-9]+)\.([0-9]+)-SNAPSHOT ]] then diff --git a/scripts/get-release-version.sh b/scripts/get-release-version.sh index 91beeb043..6ae789234 100755 --- a/scripts/get-release-version.sh +++ b/scripts/get-release-version.sh @@ -17,16 +17,6 @@ set -e -#export branch=$(git status --branch --porcelain | cut -d' ' -f2) -#if [[ $branch =~ main ]] -#then -# printf "On branch main, continuing\n" 1>&2 -#else -# printf "Not branch main, bailing out\n" 1>&2 -# exit 2 -#fi - - export REVISION=$(mvn help:evaluate -Dexpression=revision -q -DforceStdout) if [[ $REVISION =~ ^([0-9]+)\.([0-9]+)\.([0-9]+)-SNAPSHOT$ ]] then