From 41272e67a36f1662f93f47e2c23bfc751cbaee3b 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 Former-commit-id: ca21ec5987a64aea7d155d5ce532b452d502d1e8 [formerly 0f4ae7305653e52c36bd2e05b6328e4b6a21cfa7] [formerly 8461ae3cc270e84de3ab0a402d50484b1a417261 [formerly f218c2a7910d9d8246a92090269fa4be4872416f]] Former-commit-id: 1e7aca3d5837c39a5073bd3d65847fe566929ad0 [formerly d210374bc803529ce4edf7a6d83bd3c4ae3f1bc5] Former-commit-id: 0eaf26b83f446f6022da9af1be334f9eb452b5a1 --- 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