From 269ed630be2d127bf7809fba537c35b1e3973b9e Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Sun, 29 Dec 2024 16:25:57 +1300 Subject: [PATCH] CICD: Make Version Generation Fail a Bit More Verbosely. Signed-off-by: Michael Keller --- scripts/get-or-create-build-nr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/get-or-create-build-nr.sh b/scripts/get-or-create-build-nr.sh index 0a75dcae8..c0a7d8450 100755 --- a/scripts/get-or-create-build-nr.sh +++ b/scripts/get-or-create-build-nr.sh @@ -48,7 +48,7 @@ else # someone else was faster - get the number they wrote git checkout main &> /dev/null git branch -D "$SHA_BRANCH" &> /dev/null - if ! git checkout "$SHA_BRANCH" &> /dev/null + if ! git checkout "$SHA_BRANCH" then echo "push to $SHA_BRANCH failed, but switching to it failed as well" exit 2