Skip to content

Commit 0c2e943

Browse files
committed
fix error if working include any space characters.
1 parent a65c564 commit 0c2e943

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

runme.bat

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
@echo off
22
for /f "tokens=3 delims= " %%a in ('chcp') do set lang=%%a
3-
if "%lang%" == "932" (set doc=%~dp0doc\jp) else (set doc=%~dp0doc\en)
4-
SET adb=%~dp0bin\adb.exe
3+
if "%lang%" == "932" (set doc="%~dp0doc\jp") else (set doc="%~dp0doc\en")
4+
SET adb="%~dp0bin\adb.exe"
55

6-
type "%doc%\01_Thanks.txt"
6+
type %doc%\"01_Thanks.txt"
77
pause
88

99

1010
call :adb_push
1111

1212

13-
type "%doc%\06_backup.txt"
13+
type %doc%\"06_backup.txt"
1414
set /P INPUT=(N/y):
1515
if "%INPUT%" == "Y" call :backup
1616
if "%INPUT%" == "y" call :backup
1717

1818

19-
type "%doc%\03_warning.txt"
19+
type %doc%\"03_warning.txt"
2020
set /P INPUT=(N/y):
2121
if "%INPUT%"=="Y" call :install_recovery
2222
if "%INPUT%"=="y" call :install_recovery
2323

24-
type "%doc%\04_warning_su.txt"
24+
type %doc%\"04_warning_su.txt"
2525
set /P INPUT=(N/y):
2626
if "%INPUT%" == "Y" call :install_su
2727
if "%INPUT%" == "y" call :install_su
2828

2929
:finish
3030
call :clean
31-
type "%doc%\02_End.txt"
31+
type %doc%\"02_End.txt"
3232
pause
3333
exit /b
3434

@@ -51,7 +51,7 @@ exit /b
5151

5252
:backup
5353
echo start backup
54-
type "%doc%\07_warning_backup.txt"
54+
type %doc%\"07_warning_backup.txt"
5555
%adb% shell /data/local/tmp/run_root.sh /data/local/tmp/backup.sh
5656
mkdir %~dp0backups
5757
adb pull /sdcard/backup/ "%~dp0backups"
@@ -69,7 +69,7 @@ cls
6969
echo start instrall SuperSu
7070
%adb% shell /data/local/tmp/run_root.sh /data/local/tmp/SuperSu/install_su.sh
7171
%adb% shell /data/local/tmp/run_root_shell -c "reboot recovery"
72-
type "%doc%\05_reboot.txt"
72+
type %doc%\"05_reboot.txt"
7373
%adb% wait-for-device
7474
exit /b
7575

0 commit comments

Comments
 (0)