mirror of
https://github.com/Flowseal/zapret-discord-youtube.git
synced 2025-12-12 14:29:54 +05:00
Update refactoring
This commit is contained in:
21
service.bat
21
service.bat
@@ -1,5 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
set "LOCAL_VERSION=1.8.2"
|
set "LOCAL_VERSION=1.8.3"
|
||||||
|
|
||||||
:: External commands
|
:: External commands
|
||||||
if "%~1"=="status_zapret" (
|
if "%~1"=="status_zapret" (
|
||||||
@@ -8,11 +8,11 @@ if "%~1"=="status_zapret" (
|
|||||||
)
|
)
|
||||||
|
|
||||||
if "%~1"=="check_updates" (
|
if "%~1"=="check_updates" (
|
||||||
call :service_check_updates soft
|
if not "%~2"=="soft" (
|
||||||
exit /b
|
start /b service check_updates soft
|
||||||
)
|
) else (
|
||||||
if "%~1"=="start_update" (
|
call :service_check_updates soft
|
||||||
call :service_start_update soft
|
)
|
||||||
exit /b
|
exit /b
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -255,15 +255,6 @@ goto menu
|
|||||||
|
|
||||||
:: CHECK UPDATES =======================
|
:: CHECK UPDATES =======================
|
||||||
:service_check_updates
|
:service_check_updates
|
||||||
if "%1"=="soft" (
|
|
||||||
start /b service start_update
|
|
||||||
exit /b
|
|
||||||
)
|
|
||||||
goto :service_start_update
|
|
||||||
|
|
||||||
|
|
||||||
:service_start_update
|
|
||||||
|
|
||||||
chcp 437 > nul
|
chcp 437 > nul
|
||||||
cls
|
cls
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user