Skip to content

Commit 7c91f59

Browse files
committed
Match any rclone version
1 parent 2c3167b commit 7c91f59

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

windows-install.bat

+5-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ echo Unzipping adb
2929
"C:\Program Files\7-Zip\7z.exe" x -y android-tools.zip > NUL
3030
echo Combining folders
3131
SET COPYCMD=/Y
32-
move /y rclone-v1.55.0-windows-amd64\rclone.exe platform-tools\rclone.exe > NUL
33-
del /F /Q rclone-v1.55.0-windows-amd64\ > NUL
32+
for /d %%a in (rclone-*) do (
33+
move /y %%a\rclone.exe platform-tools\ > NUL
34+
del /F /Q %%a > NUL
35+
rmdir %%a > NUL
36+
)
3437
echo Adding to PATH
3538
:: Get System PATH
3639
for /f "tokens=2*" %%A in ('reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v Path') do set syspath=%%B

0 commit comments

Comments
 (0)