Skip to content

Commit

Permalink
chore: fix checking for the existence of TARGET_TAG
Browse files Browse the repository at this point in the history
Signed-off-by: Cheng Fang <[email protected]>
  • Loading branch information
chengfang committed Jun 12, 2024
1 parent f8b345b commit d00eb2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ fi

echo "${TARGET_VERSION}" > VERSION

echo "*** checking for existance of git tag ${TARGET_TAG}"
if git tag -l "${TARGET_VERSION}" | grep -q "${TARGET_TAG}"; then
echo "*** checking for existence of git tag ${TARGET_TAG}"
if git tag -l "${TARGET_TAG}" | grep -q "${TARGET_TAG}"; then
echo "Error: Tag with version ${TARGET_TAG} already exists." >&2
exit 1
fi
Expand Down

0 comments on commit d00eb2f

Please sign in to comment.