Skip to content

Commit 29f1ef1

Browse files
committed
fix error if working include any space characters.
1 parent 567cb15 commit 29f1ef1

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

runme.bat

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
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

66
mode con:cols=80 lines=40
7-
type "%doc%\01_Thanks.txt"
7+
type %doc%\"01_Thanks.txt"
88
pause
99
call :adb_push
1010

1111
:menu
1212
COLOR 0A
13-
cls
14-
type "%doc%\08_menu.txt"
13+
type %doc%\"08_menu.txt"
1514
set /P INPUT=Num :
1615
if "%INPUT%" == "1" call :backup
1716
if "%INPUT%" == "2" call :install_recovery
@@ -24,7 +23,7 @@ goto menu
2423
:finish
2524
COLOR 07
2625
call :clean
27-
type "%doc%\02_End.txt"
26+
type %doc%\"02_End.txt"
2827
pause
2928
exit /b
3029

@@ -43,7 +42,7 @@ exit /b
4342
:backup
4443
CLS
4544
COLOR 0B
46-
type "%doc%\06_backup.txt"
45+
type %doc%\"06_backup.txt"
4746
set /P INPUT=(N/y):
4847
if "%INPUT%" == "Y" call :backup_core
4948
if "%INPUT%" == "y" call :backup_core
@@ -54,7 +53,7 @@ echo prepear for backup
5453
%adb% shell chmod 755 /data/local/tmp/backup.sh
5554

5655
echo start backup
57-
type "%doc%\07_warning_backup.txt"
56+
type %doc%\"07_warning_backup.txt"
5857
%adb% shell /data/local/tmp/run_root.sh /data/local/tmp/backup.sh
5958
echo save to PC
6059
mkdir %~dp0backups
@@ -67,7 +66,7 @@ exit /b
6766
:install_recovery
6867
CLS
6968
COLOR 0D
70-
type "%doc%\03_warning.txt"
69+
type %doc%\"03_warning.txt"
7170
set /P INPUT=(N/y):
7271
if "%INPUT%"=="Y" call :install_recovery_core
7372
if "%INPUT%"=="y" call :install_recovery_core
@@ -93,7 +92,7 @@ exit /b
9392
:install_su
9493
CLS
9594
COLOR 0E
96-
type "%doc%\04_warning_su.txt"
95+
type %doc%\"04_warning_su.txt"
9796
set /P INPUT=(N/y):
9897
if "%INPUT%" == "Y" call :install_su_core
9998
if "%INPUT%" == "y" call :install_su_core
@@ -109,7 +108,7 @@ echo install su binaries
109108
%adb% shell /data/local/tmp/run_root_shell -c "chmod 6755 /data/local/tmp/SuperSu/sed/xbin/daemonsu"
110109
%adb% shell /data/local/tmp/run_root.sh /data/local/tmp/SuperSu/install_su.sh
111110
%adb% shell /data/local/tmp/run_root_shell -c "reboot recovery"
112-
type "%doc%\05_reboot.txt"
111+
type %doc%\"05_reboot.txt"
113112
%adb% wait-for-device
114113

115114
echo start instrall SuperSu.apk

0 commit comments

Comments
 (0)