mirror of
https://github.com/timsutton/brigadier.git
synced 2025-06-06 09:41:19 -04:00
Update brigadier.bat
This commit is contained in:
parent
d57edb7059
commit
620c294610
1 changed files with 10 additions and 0 deletions
|
@ -6,6 +6,7 @@ set "script_name="
|
|||
set "thisDir=%~dp0"
|
||||
set /a tried=0
|
||||
set "toask=yes"
|
||||
set "pause_on_error=yes"
|
||||
set "py2v="
|
||||
set "py2path="
|
||||
set "py3v="
|
||||
|
@ -310,4 +311,13 @@ if "!args!"=="" (
|
|||
) else (
|
||||
"!pypath!" "!thisDir!!script_name!" %*
|
||||
)
|
||||
if /i "!pause_on_error!" == "yes" (
|
||||
if not "%ERRORLEVEL%" == "0" (
|
||||
echo.
|
||||
echo Script exited with error code: %ERRORLEVEL%
|
||||
echo.
|
||||
echo Press [enter] to exit...
|
||||
pause > nul
|
||||
)
|
||||
)
|
||||
goto :EOF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue