mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 22:37:00 +08:00
Added errorlevel check on alas.bat to pause script when return error
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -14,6 +14,7 @@ dev_tools/debug_tools
|
||||
/python
|
||||
/python-3.7.6.amd64
|
||||
/scripts
|
||||
/campaign/test/
|
||||
|
||||
# Created by .ignore support plugin (hsz.mobi)
|
||||
|
||||
|
||||
21
alas.bat
21
alas.bat
@@ -77,21 +77,26 @@ goto alas
|
||||
|
||||
:en
|
||||
%~dp0python-3.7.6.amd64/python.exe alas_en.pyw
|
||||
:: timout
|
||||
PowerShell -Command "Start-Sleep -s 10" > nul 2>&1
|
||||
|
||||
if NOT ["%errorlevel%"]==["0"] (
|
||||
pause
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
goto alas
|
||||
|
||||
:cn
|
||||
%~dp0python-3.7.6.amd64/python.exe alas_cn.pyw
|
||||
|
||||
if NOT ["%errorlevel%"]==["0"] (
|
||||
pause
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
goto alas
|
||||
|
||||
:jp
|
||||
%~dp0python-3.7.6.amd64/python.exe alas_jp.pyw
|
||||
|
||||
PowerShell -Command "Start-Sleep -s 5" > nul 2>&1
|
||||
if NOT ["%errorlevel%"]==["0"] (
|
||||
pause
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
goto alas
|
||||
|
||||
:EOF
|
||||
exit
|
||||
|
||||
|
||||
Reference in New Issue
Block a user