Skip to content

Commit 3a9696d

Browse files
committed
update script
1 parent c5af5df commit 3a9696d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/update_vertexai_responses.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ git clone "$REPO_LINK" --quiet || exit
2727
cd "$REPO_NAME" || exit
2828

2929
# Find and checkout latest tag matching major version
30-
TAG=$(git tag --sort=v:refname | grep "$RESPONSES_VERSION" | tail -n1)
30+
TAG=$(git tag -l "$RESPONSES_VERSION" --sort=v:refname | tail -n1)
3131
if [ -z "$TAG" ]; then
32-
echo "Error: No matching tag found in $REPO_NAME"
32+
echo "Error: No tag matching '$RESPONSES_VERSION' found in $REPO_NAME"
3333
exit
3434
fi
3535
git checkout "$TAG" --quiet

0 commit comments

Comments
 (0)