From f218c2a7910d9d8246a92090269fa4be4872416f Mon Sep 17 00:00:00 2001 From: 1138-4EB <1138-4EB@users.noreply.github.com> Date: Tue, 8 Jan 2019 21:20:00 +0100 Subject: [PATCH] fix: wizard release --- wizard.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wizard.sh b/wizard.sh index 1cea042a..88d62c50 100755 --- a/wizard.sh +++ b/wizard.sh @@ -238,8 +238,11 @@ release () { exit 1 fi + set +e git rev-parse --verify --quiet release - if [ $? -ne 0 ]; then + exitcode=$? + set -e + if [ $exitcode -ne 0 ]; then git checkout -b release "$semver" else git checkout release