From d165dc60363c38f8add1d4a9324138c7208d5e6a Mon Sep 17 00:00:00 2001 From: Dave Cheney Date: Fri, 25 Mar 2011 18:00:19 -0400 Subject: [PATCH] build: handle broken awk in version.bash R=adg, rsc, ality CC=golang-dev https://golang.org/cl/4281069 --- src/version.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/version.bash b/src/version.bash index b3df0e91a80..7b2c06801a0 100755 --- a/src/version.bash +++ b/src/version.bash @@ -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