From 0d8d4ea97a014a14508469640b8e1e69815b667a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20N=C3=BCtzi?= Date: Mon, 22 Apr 2024 23:20:44 +0200 Subject: [PATCH] ci: Fix release script :anchor: --- scripts/release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/release.sh b/scripts/release.sh index 479043d5..a2908761 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -42,12 +42,12 @@ function commit_version_file() { function create_tag() { tag="v$version" - if git tag --list "v*" | grep -q "$tag"; then + if git tag --list "v*" | grep -qE "^$tag$"; then echo "Git tag '$tag' already exists." exit 1 fi - if git ls-remote "refs/tags/v*" | grep -q "$tag"; then + if git ls-remote "refs/tags/v*" | grep -qE "^$tag$"; then echo "Git tag '$tag' already exists." exit 1 fi