mirror of
https://github.com/golang/go
synced 2024-11-25 00:07:56 -07: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 New Issue
Block a user