make-release.sh: Fail if version branch already exists

This commit is contained in:
Johannes Meyer 2021-05-28 11:02:47 +02:00
parent fcb17c46ff
commit 3993f8ac82
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ if [[ "$TAG" -ne "0" ]]; then
fi
BRANCH="stable/$VERSION"
git checkout -b "$BRANCH"
git checkout -b "$BRANCH" || fail "Version branch $BRANCH already exists"
git rm -rf vendor
rm -rf vendor
rm -f composer.lock