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