diff --git a/roles/copy-release-tools-scripts/files/release-tools/make_branch.sh b/roles/copy-release-tools-scripts/files/release-tools/make_branch.sh index 1929acd18f..e062add6fe 100755 --- a/roles/copy-release-tools-scripts/files/release-tools/make_branch.sh +++ b/roles/copy-release-tools-scripts/files/release-tools/make_branch.sh @@ -55,9 +55,16 @@ if $(git tag | grep ${NEW_BRANCH/\//-}-eol > /dev/null); then cleanup_and_exit fi -# Skip branch creation in case -eol tag exists -if $(git tag | grep ${NEW_BRANCH#stable/}-eol >/dev/null); then - echo "A ${NEW_BRANCH#stable/}-eol tag already exists !" +# Skip stable/ or unmaintained/ branch creation in case +# -eol tag exists +if $(git tag | grep ${NEW_BRANCH//@(stable\/|unmaintained\/)}-eol >/dev/null); then + echo "A ${NEW_BRANCH//@(stable\/|unmaintained\/)}-eol tag already exists !" + cleanup_and_exit +fi + +# Skip stable/ branch creation in case -eom tag exists +if $(git tag | grep ${NEW_BRANCH#stable/}-eom >/dev/null); then + echo "A ${NEW_BRANCH#stable/}-eom tag already exists !" cleanup_and_exit fi