Skip to content

Commit c81e536

Browse files
committed
tools/update-oss.sh: fix module version selection
1 parent fe2a439 commit c81e536

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/update-oss.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ git checkout --quiet main && git pull --rebase --quiet
2727
have="$(go list -f '{{.Version}}' -m "$module" | cut -d- -f3)"
2828
want="$(
2929
gh api -q '.content|@base64d' repos/"${repo}"/contents/go.mod |
30-
grep -E "\b${module}\b" | cut -d' ' -f2 | cut -d- -f3
30+
grep -E "\b${module} " | cut -d' ' -f2 | cut -d- -f3
3131
)"
3232
if [[ "$have" = "$want" ]] ; then
3333
echo "Module $module is up-to-date at commit $have" 1>&2

0 commit comments

Comments
 (0)