Skip to content

Commit cdb183a

Browse files
committed
Quote arguments to mklink, fixes #110.
1 parent 840edb2 commit cdb183a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

resources/install.bat

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if exist "%CMDDIR%\git.exe" (
2727
echo 'git.exe' already exist.
2828
) else (
2929
echo Create 'git.exe' symlink...
30-
mklink %CMDDIR%\git.exe %CMDDIR%\wslgit.exe
30+
mklink "%CMDDIR%\git.exe" "%CMDDIR%\wslgit.exe"
3131
if %ERRORLEVEL% neq 0 (
3232
echo ERROR! Failed to create symlink '%CMDDIR%\git.exe'.
3333
goto :error
@@ -53,7 +53,7 @@ if exist "%BINDIR%\git.exe" (
5353
echo 'bin\git.exe' already exist.
5454
) else (
5555
echo Create 'bin\git.exe' symlink...
56-
mklink %BINDIR%\git.exe %CMDDIR%\wslgit.exe
56+
mklink "%BINDIR%\git.exe" "%CMDDIR%\wslgit.exe"
5757
if %ERRORLEVEL% neq 0 (
5858
echo ERROR! Failed to create symlink '%BINDIR%\git.exe'.
5959
goto :error
@@ -67,7 +67,7 @@ if exist "%BINDIR%\Fork.RI" (
6767
echo 'bin\Fork.RI' already exist.
6868
) else (
6969
echo Create 'bin\Fork.RI' symlink...
70-
mklink %BINDIR%\Fork.RI %CMDDIR%\Fork.RI
70+
mklink "%BINDIR%\Fork.RI" "%CMDDIR%\Fork.RI"
7171
if %ERRORLEVEL% neq 0 (
7272
echo ERROR! Failed to create symlink '%BINDIR%\Fork.RI'.
7373
goto :error
@@ -81,7 +81,7 @@ if exist "%BINDIR%\sh.exe" (
8181
echo 'bin\sh.exe' already exist.
8282
) else (
8383
echo Create 'bin\sh.exe' symlink...
84-
mklink %BINDIR%\sh.exe C:\Windows\System32\wsl.exe
84+
mklink "%BINDIR%\sh.exe" "C:\Windows\System32\wsl.exe"
8585
if %ERRORLEVEL% neq 0 (
8686
echo ERROR! Failed to create symlink '%BINDIR%\sh.exe'.
8787
goto :error
@@ -95,7 +95,7 @@ if exist "%BINDIR%\bash.exe" (
9595
echo 'bin\bash.exe' already exist.
9696
) else (
9797
echo Create 'bin\bash.exe' symlink...
98-
mklink %BINDIR%\bash.exe C:\Windows\System32\wsl.exe
98+
mklink "%BINDIR%\bash.exe" "C:\Windows\System32\wsl.exe"
9999
if %ERRORLEVEL% neq 0 (
100100
echo ERROR! Failed to create symlink '%BINDIR%\bash.exe'.
101101
goto :error

0 commit comments

Comments
 (0)