1
0
mirror of https://github.com/golang/go synced 2024-11-22 04:24:39 -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:
Russ Cox 2012-01-30 23:33:16 -05:00
parent 0eb647e71c
commit 38e37011fc

View File

@ -36,7 +36,7 @@ TAG=$(hg tags |
grep $BRANCH |
sed 's/:.*//' |
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)
if [ "$TAG" != "" ]; then