mirror of
https://github.com/corpnewt/gibMacOS.git
synced 2025-01-09 19:07:45 +01:00
Update gibMacOS.bat
This commit is contained in:
parent
048dfb170e
commit
c80a680229
10
gibMacOS.bat
10
gibMacOS.bat
@ -6,6 +6,7 @@ set "script_name="
|
|||||||
set "thisDir=%~dp0"
|
set "thisDir=%~dp0"
|
||||||
set /a tried=0
|
set /a tried=0
|
||||||
set "toask=yes"
|
set "toask=yes"
|
||||||
|
set "pause_on_error=yes"
|
||||||
set "py2v="
|
set "py2v="
|
||||||
set "py2path="
|
set "py2path="
|
||||||
set "py3v="
|
set "py3v="
|
||||||
@ -310,4 +311,13 @@ if "!args!"=="" (
|
|||||||
) else (
|
) else (
|
||||||
"!pypath!" "!thisDir!!script_name!" %*
|
"!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
|
goto :EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user