Skip to content

Commit

Permalink
bash negative exit codes are not portable, let's be positive
Browse files Browse the repository at this point in the history
Signed-off-by: Rick Farina (Zero_Chaos) <[email protected]>
  • Loading branch information
ZeroChaos- committed Jan 30, 2024
1 parent d37972a commit 57cbe4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/tools/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 57cbe4b

Please sign in to comment.