Skip to content

Commit 94d31bc

Browse files
committed
Update elasticsearch-node.bat to exit outside of endlocal
1 parent 00ebdee commit 94d31bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

distribution/src/bin/elasticsearch-node.bat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ setlocal enableextensions
66
set ES_MAIN_CLASS=org.elasticsearch.cluster.coordination.NodeToolCli
77
call "%~dp0elasticsearch-cli.bat" ^
88
%%* ^
9-
|| exit /b 1
9+
|| goto exit
1010

1111
endlocal
1212
endlocal
13+
:exit
14+
exit /b %ERRORLEVEL%

0 commit comments

Comments
 (0)