Skip to content

Commit

Permalink
do_a_release: set exit code of git command on success and error
Browse files Browse the repository at this point in the history
  • Loading branch information
malt3 committed Jan 7, 2025
1 parent 424007b commit 19f807b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bzl/private/release/do_a_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fi

DIST_TAR=$(realpath "${DIST_TAR}")

git describe --exact-match --tags HEAD 2>/dev/null || error_code=$?
git describe --exact-match --tags HEAD 2>/dev/null && error_code=$? || error_code=$?
if [ "${error_code}" -ne 0 ]; then
echo "Current commit is not a tag. Aborting." 1>&2
exit 1
Expand Down

0 comments on commit 19f807b

Please sign in to comment.