mirror of
https://github.com/golang/go
synced 2024-11-22 09:54:40 -07:00
build: force numerical comparison in version.bash
Fixes #2436. R=golang-dev, adg CC=golang-dev https://golang.org/cl/5576075
This commit is contained in:
parent
0eb647e71c
commit
38e37011fc
@ -36,7 +36,7 @@ TAG=$(hg tags |
|
|||||||
grep $BRANCH |
|
grep $BRANCH |
|
||||||
sed 's/:.*//' |
|
sed 's/:.*//' |
|
||||||
sort -rn -k2 |
|
sort -rn -k2 |
|
||||||
awk -v ver=$VERSION '$2 <= ver && $1~/^(release|weekly)\./ {print $1}' |
|
awk -v ver=$VERSION '$2+0 <= ver+0 && $1~/^(release|weekly)\./ {print $1}' |
|
||||||
sed -n 1p)
|
sed -n 1p)
|
||||||
|
|
||||||
if [ "$TAG" != "" ]; then
|
if [ "$TAG" != "" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user