1
0
mirror of https://github.com/golang/go synced 2024-11-20 04:54:44 -07:00

fix bug in $GOROOT handling: error calling Getenv.

R=gri
OCL=31047
CL=31047
This commit is contained in:
Rob Pike 2009-07-02 09:47:25 -07:00
parent 22b93dfb5c
commit 519a70da54

View File

@ -99,7 +99,7 @@ var (
func init() {
goroot = os.Getenv("GOROOT");
if goroot != "" {
if goroot == "" {
goroot = "/home/r/go-release/go";
}
flag.StringVar(&goroot, "goroot", goroot, "Go root directory");