mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-29 21:03:40 +00:00
fix(scripts): anchor grep pattern to prevent false tag match
grep -q "refs/tags/$TAG" matched substrings, so v0.27.0b0
would block release of v0.27.0. Changed to "refs/tags/${TAG}$"
to require exact end-of-line match.
This commit is contained in:
parent
0381749e6f
commit
566ccf4017
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ if git rev-parse "$TAG" >/dev/null 2>&1; then
|
|||
die "Tag $TAG already exists locally\\nTo remove it: git tag -d $TAG"
|
||||
fi
|
||||
|
||||
if git ls-remote --tags origin | grep -q "refs/tags/$TAG"; then
|
||||
if git ls-remote --tags origin | grep -q "refs/tags/${TAG}$"; then
|
||||
die "Tag $TAG already exists on remote"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue