Commit 38e37011 authored by Russ Cox's avatar Russ Cox

build: force numerical comparison in version.bash

Fixes #2436.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5576075
parent 0eb647e7
...@@ -36,7 +36,7 @@ TAG=$(hg tags | ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment