diff options
author | Christian Fetzer <fetzer.ch@googlemail.com> | 2016-02-26 17:54:58 +0100 |
---|---|---|
committer | Christian Fetzer <fetzer.ch@googlemail.com> | 2016-02-26 19:27:15 +0100 |
commit | ae9c593805231f8401d60c68148153bd9ebac35c (patch) | |
tree | a240119cae639315e9ef33fe7efd6eafa320aaa2 /project/BuildDependencies | |
parent | e63526096752a48e9e5dcf310b645e7f33a7c69e (diff) |
[win32] DownloadMingwBuildEnv: Quote paths
Add quotes to paths containing USERNAME to prevent errors when username
contains a space.
Diffstat (limited to 'project/BuildDependencies')
-rw-r--r-- | project/BuildDependencies/DownloadMingwBuildEnv.bat | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/project/BuildDependencies/DownloadMingwBuildEnv.bat b/project/BuildDependencies/DownloadMingwBuildEnv.bat index 388c322484..2247d0f22d 100644 --- a/project/BuildDependencies/DownloadMingwBuildEnv.bat +++ b/project/BuildDependencies/DownloadMingwBuildEnv.bat @@ -112,8 +112,8 @@ if not exist %instdir%\%msys2%\usr\bin\msys-2.0.dll ( ) :minttySettings -if exist %instdir%\%msys2%\home\%USERNAME%\.minttyrc GOTO updatemirrors -if not exist %instdir%\%msys2%\home\%USERNAME% mkdir %instdir%\%msys2%\home\%USERNAME% +if exist "%instdir%\%msys2%\home\%USERNAME%\.minttyrc" GOTO updatemirrors +if not exist "%instdir%\%msys2%\home\%USERNAME%" mkdir "%instdir%\%msys2%\home\%USERNAME%" ( echo.BoldAsFont=no echo.BackgroundColour=57,57,57 @@ -144,7 +144,7 @@ if not exist %instdir%\%msys2%\home\%USERNAME% mkdir %instdir%\%msys2%\home\%USE echo.BoldMagenta=158,111,254 echo.BoldCyan=163,186,191 echo.BoldWhite=248,248,242 - )>>%instdir%\%msys2%\home\%USERNAME%\.minttyrc + )>>"%instdir%\%msys2%\home\%USERNAME%\.minttyrc" :updatemirrors if not "%usemirror%"=="yes" GOTO rebase |