escape spaces in JAVA_HOME

fix 3725
This commit is contained in:
Costin Leau 2013-09-18 17:04:10 +03:00
parent 4eab186ce6
commit 709add033b
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ set SCRIPT_DIR=%~dp0
for %%I in ("%SCRIPT_DIR%..") do set ES_HOME=%%~dpfI for %%I in ("%SCRIPT_DIR%..") do set ES_HOME=%%~dpfI
rem Detect JVM version to figure out appropriate executable to use rem Detect JVM version to figure out appropriate executable to use
%JAVA_HOME%\bin\java -version 2>&1 | find "64-Bit" >nul: "%JAVA_HOME%\bin\java" -version 2>&1 | find "64-Bit" >nul:
if errorlevel 1 ( if errorlevel 1 (
set EXECUTABLE=%ES_HOME%\bin\elasticsearch-service-x86.exe set EXECUTABLE=%ES_HOME%\bin\elasticsearch-service-x86.exe