mirror of
https://github.com/golang/go
synced 2024-11-21 22:34:48 -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)/..
|
GOROOT=$(dirname $0)/..
|
||||||
|
|
||||||
# If a version file created by -save is available, use it
|
# 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
|
cat $GOROOT/VERSION
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user