service.bat file will explicitly use the Windows find command.

If `find` maps to something other than the Windows find command, the
installation will succeed, but use the incorrect Java version.
This commit is contained in:
Nicholas Canzoneri 2015-02-02 12:25:37 -05:00
parent 6c27f1242a
commit 4d0509a195
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ if not exist "%JAVA_HOME%\bin\java.exe" (
echo JAVA_HOME points to an invalid Java installation (no java.exe found in "%JAVA_HOME%"^). Exiting...
goto:eof
)
"%JAVA_HOME%\bin\java" -version 2>&1 | find "64-Bit" >nul:
"%JAVA_HOME%\bin\java" -version 2>&1 | "%windir%\System32\find" "64-Bit" >nul:
if errorlevel 1 goto x86
set EXECUTABLE=%ES_HOME%\bin\elasticsearch-service-x64.exe