mirror of
https://github.com/golang/go
synced 2024-11-22 00:34:40 -07:00
build: handle broken awk in version.bash
R=adg, rsc, ality CC=golang-dev https://golang.org/cl/4281069
This commit is contained in:
parent
d406f8f650
commit
d165dc6036
@ -19,7 +19,7 @@ fi
|
|||||||
# Find most recent known release tag.
|
# Find most recent known release tag.
|
||||||
TAG=$(hg tags |
|
TAG=$(hg tags |
|
||||||
sort -rn -k2 |
|
sort -rn -k2 |
|
||||||
awk -vver=$VERSION '$2 <= ver && $1~/^(release|weekly)\./ {print $1}' |
|
awk -v ver=$VERSION '$2 <= ver && $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