Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions distribution/src/main/resources/bin/elasticsearch-env.bat
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if defined JAVA_HOME (

if not exist %JAVA% (
echo could not find java; set JAVA_HOME or ensure java is in PATH 1>&2
exit /B 1
exit /b 1
)

rem JAVA_OPTS is not a built-in JVM mechanism but some people think it is so we
Expand All @@ -41,7 +41,7 @@ rem check the Java version
if errorlevel 1 (
echo|set /p="the minimum required Java version is 8; "
echo your Java version from %JAVA% does not meet this requirement
exit /B 1
exit /b 1
)

if "%CONF_DIR%" == "" (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setlocal enabledelayedexpansion

call "%~dp0elasticsearch-env.bat"
call "%~dp0elasticsearch-env.bat" || exit /b 1

%JAVA% ^
%ES_JAVA_OPTS% ^
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setlocal enabledelayedexpansion

call "%~dp0elasticsearch-env.bat"
call "%~dp0elasticsearch-env.bat" || exit /b 1

%JAVA% ^
%ES_JAVA_OPTS% ^
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setlocal enabledelayedexpansion

call "%~dp0elasticsearch-env.bat"
call "%~dp0elasticsearch-env.bat" || exit /b 1

set EXECUTABLE=%ES_HOME%\bin\elasticsearch-service-x64.exe
set SERVICE_ID=elasticsearch-service-x64
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setlocal enabledelayedexpansion

call "%~dp0elasticsearch-env.bat"
call "%~dp0elasticsearch-env.bat" || exit /b 1

%JAVA% ^
%ES_JAVA_OPTS% ^
Expand Down
2 changes: 1 addition & 1 deletion distribution/src/main/resources/bin/elasticsearch.bat
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ FOR /F "usebackq tokens=1* delims= " %%A IN (!params!) DO (
)
)

CALL "%~dp0elasticsearch-env.bat"
CALL "%~dp0elasticsearch-env.bat" || exit /b 1
IF ERRORLEVEL 1 (
IF NOT DEFINED nopauseonerror (
PAUSE
Expand Down