Skip to content

Commit eb38165

Browse files
committed
sdk-installer: allow installing into a path with spaces
We need to quote the directory properly if it contains spaces. Since this is not a problem, let's just do it. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 9d646a6 commit eb38165

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sdk-installer/setup-git-sdk.bat

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
@REM update the Pacman package indices first, then force-install msys2-runtime
4141
@REM (we ship with a stripped-down msys2-runtime, gpg and pacman), so that
4242
@REM pacman's post-install scripts run without complaining about heap problems
43-
@%cwd%\usr\bin\pacman -Sy --force --noconfirm msys2-runtime
43+
@"%cwd%"\usr\bin\pacman -Sy --force --noconfirm msys2-runtime
4444

4545
@IF ERRORLEVEL 1 GOTO INSTALL_RUNTIME
4646

@@ -54,7 +54,7 @@
5454
)
5555

5656
@REM next, force update pacman, but first we need bash and info for that.
57-
@%cwd%\usr\bin\pacman -S --force --noconfirm bash info pacman
57+
@"%cwd%"\usr\bin\pacman -S --force --noconfirm bash info pacman
5858

5959
@IF ERRORLEVEL 1 GOTO INSTALL_PACMAN
6060

@@ -68,7 +68,7 @@
6868
)
6969

7070
@REM now update the rest
71-
@%cwd%\usr\bin\pacman -S --force --noconfirm ^
71+
@"%cwd%"\usr\bin\pacman -S --force --noconfirm ^
7272
base python less openssh patch make tar diffutils ca-certificates ^
7373
git perl-Error perl perl-Authen-SASL perl-libwww perl-MIME-tools ^
7474
perl-Net-SMTP-SSL perl-TermReadKey dos2unix asciidoc xmlto ^
@@ -84,7 +84,7 @@
8484
@REM Avoid overlapping address ranges
8585
@IF MINGW32 == %MSYSTEM% @(
8686
ECHO Auto-rebasing .dll files
87-
CALL %cwd%\autorebase.bat
87+
CALL "%cwd%"\autorebase.bat
8888
)
8989

9090
@REM If an HTTP proxy is requires, configure it for Git Bash sessions,
@@ -99,8 +99,8 @@
9999

100100
@REM Before running a shell, let's prevent complaints about "permission denied"
101101
@REM from MSys2's /etc/post-install/01-devices.post
102-
@MKDIR %cwd%\dev\shm 2> NUL
103-
@MKDIR %cwd%\dev\mqueue 2> NUL
102+
@MKDIR "%cwd%"\dev\shm 2> NUL
103+
@MKDIR "%cwd%"\dev\mqueue 2> NUL
104104

105105
@IF NOT DEFINED JENKINS_URL @(
106106
@REM Install shortcut on the desktop

0 commit comments

Comments
 (0)