version.bash: update VERSION on -save if already present

R=rsc
CC=golang-dev
https://golang.org/cl/4941047
This commit is contained in:
Gustavo Niemeyer 2011-08-24 22:10:25 -03:00
parent 297a08ea66
commit 15580526de

View file

@ -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