Unverified Commit d3fd0945 authored by Max Lv's avatar Max Lv Committed by GitHub

Merge pull request #1982 from xmh19936688/patch-1

don't set GOROOT if already exist
parents 997eb799 4bb27a3b
...@@ -60,15 +60,12 @@ IF "%ERRORLEVEL%" == 1 ( ...@@ -60,15 +60,12 @@ IF "%ERRORLEVEL%" == 1 (
EXIT 1 EXIT 1
) )
IF NOT EXIST %DIR%\go\bin\go.exe ( WHERE go.exe
ECHO "Build the custom go" IF NOT EXIST %GOROOT% (
ECHO "GOROOT not found"
PUSHD %DIR%\go\src EXIT 1
CALL make.bat
POPD
) )
SET GOROOT=%DIR%\go
SET GOPATH=%DIR% SET GOPATH=%DIR%
SET PATH=%GOROOT%\bin;%GOPATH%\bin;%PATH% SET PATH=%GOROOT%\bin;%GOPATH%\bin;%PATH%
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment