From 57cbe4b8476ee2e5a7ae8ce799f80f7dc24f68fd Mon Sep 17 00:00:00 2001 From: "Rick Farina (Zero_Chaos)" Date: Tue, 30 Jan 2024 17:43:39 -0500 Subject: [PATCH] bash negative exit codes are not portable, let's be positive Signed-off-by: Rick Farina (Zero_Chaos) --- scripts/tools/release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/tools/release.sh b/scripts/tools/release.sh index 8b4247dd..7bef7eb4 100755 --- a/scripts/tools/release.sh +++ b/scripts/tools/release.sh @@ -56,12 +56,12 @@ if git --no-pager reflog "${last_release}" > /dev/null 2>&1 ; then echo "Found last tag ${last_release}" else echo "Last release tag ${last_release} does not exist, aborting…" - exit -1 + exit 255 fi # Check for whether tag already exists if git --no-pager reflog "${releaseprefix}${version}" > /dev/null 2>&1 ; then echo "Tag ${releaseprefix}${version} already exists, aborting…" - exit -2 + exit 254 fi echo "Releasing version ${version}"