From 15580526de5419ae988f86cb807967f740b36f3d Mon Sep 17 00:00:00 2001 From: Gustavo Niemeyer Date: Wed, 24 Aug 2011 22:10:25 -0300 Subject: [PATCH] version.bash: update VERSION on -save if already present R=rsc CC=golang-dev https://golang.org/cl/4941047 --- src/version.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/version.bash b/src/version.bash index fc899e2e3e4..792814bac7b 100755 --- a/src/version.bash +++ b/src/version.bash @@ -6,7 +6,7 @@ GOROOT=$(dirname $0)/.. # If a version file created by -save is available, use it -if [ -f "$GOROOT/VERSION" ]; then +if [ -f "$GOROOT/VERSION" -a "$1" != "-save" ]; then cat $GOROOT/VERSION exit 0 fi