mirror of
https://github.com/golang/go
synced 2024-09-05 07:54:46 +00:00
version.bash: update VERSION on -save if already present
R=rsc CC=golang-dev https://golang.org/cl/4941047
This commit is contained in:
parent
297a08ea66
commit
15580526de
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue