Skip to content

Commit ac64ff0

Browse files
authored
fixed a bug
1 parent 96c8cb1 commit ac64ff0

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

main-service.bat

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,23 @@ if %errorlevel% neq 0 (
1818
)
1919

2020
:checklanguage
21-
ver|find "°æ±¾" >nul&&set ver=chinese||set ver=notchinese
22-
if %ver%==notchinese goto languagecheckfailed
21+
ver|find "°æ±¾" >nul&&set ver="chinese"||set ver="notchinese"
22+
if %ver%=="notchinese" goto languagecheckfailed
2323

2424
:requirefilescheck
2525
if not exist "%systemdrive%\Windows\System32\PING.EXE" goto requirecheckfilesfailed
2626
if not exist "%systemdrive%\Windows\System32\taskkill.exe" goto requirecheckfilesfailed
2727
if not exist "%systemdrive%\Windows\System32\cmd.exe goto" requirecheckfilesfailed
2828

2929
:statecheck
30-
if exist "%appdata%\dopamine_service\state.dp goto" judgeexist
30+
if exist "%appdata%\dopamine_service\state.dp" goto judgeexistence
3131
start "" "%appdata%\Dopamine\state-display.bat"
3232
goto mainservice
3333

34-
:judgeexist
34+
:judgeexistence
3535
del /f /s /q "%appdata%\dopamine_service\state.dp"
36-
cls
3736
ping 127.0.0.1 -n 2 >nul
38-
if exist "%appdata%\dopamine_service\state.dp clip" > "%appdata%\dopamine_service\turnoff.dp"
37+
if exist "%appdata%\dopamine_service\state.dp" clip > "%appdata%\dopamine_service\turnoff.dp"
3938
start "" "%appdata%\Dopamine\state-display.bat"
4039

4140
:mainservice

0 commit comments

Comments
 (0)