From 3993f8ac8237c9f38ad3768900a05595b5e2b682 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 28 May 2021 11:02:47 +0200 Subject: [PATCH] make-release.sh: Fail if version branch already exists --- bin/make-release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/make-release.sh b/bin/make-release.sh index 4e9d636..335f63b 100755 --- a/bin/make-release.sh +++ b/bin/make-release.sh @@ -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