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

This commit is contained in:
Johannes Meyer 2021-05-04 09:35:21 +02:00
parent 703a121607
commit ffd1e1d5a3
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