mirror of https://github.com/sbt/sbt.git
Merge pull request #228 from jessicah/patch-1
sbt.bat: JAVACMD is not quoted in version check
This commit is contained in:
commit
c525dd1b0a
|
|
@ -102,7 +102,7 @@ goto :eof
|
|||
rem Parses x out of 1.x; for example 8 out of java version 1.8.0_xx
|
||||
rem Otherwise, parses the major version; 9 out of java version 9-ea
|
||||
set JAVA_VERSION=0
|
||||
for /f "tokens=3" %%g in ('%_JAVACMD% -Xms32M -Xmx32M -version 2^>^&1 ^| findstr /i "version"') do (
|
||||
for /f "tokens=3" %%g in ('"%_JAVACMD%" -Xms32M -Xmx32M -version 2^>^&1 ^| findstr /i "version"') do (
|
||||
set JAVA_VERSION=%%g
|
||||
)
|
||||
set JAVA_VERSION=%JAVA_VERSION:"=%
|
||||
|
|
|
|||
Loading…
Reference in New Issue