mirror of
https://github.com/golang/go
synced 2024-11-22 00:24:41 -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.
|
||||
TAG=$(hg tags |
|
||||
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)
|
||||
|
||||
if [ "$TAG" != "" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user