Skip to content

Commit

Permalink
Update elasticsearch-node.bat to exit outside of endlocal
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz committed Jan 25, 2019
1 parent 00ebdee commit 94d31bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion distribution/src/bin/elasticsearch-node.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ setlocal enableextensions
set ES_MAIN_CLASS=org.elasticsearch.cluster.coordination.NodeToolCli
call "%~dp0elasticsearch-cli.bat" ^
%%* ^
|| exit /b 1
|| goto exit

endlocal
endlocal
:exit
exit /b %ERRORLEVEL%

0 comments on commit 94d31bc

Please sign in to comment.