mirror of
https://github.com/golang/go
synced 2024-11-02 11:50:30 +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
1 changed files with 1 additions and 1 deletions
|
@ -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