Skip to content

Commit db83654

Browse files
authored
Merge pull request square#38 from zsavely/patch-1
Added support for usernames with spaces.
2 parents 06aabce + 790e7d3 commit db83654

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

install.bat

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ echo Installing Square IntelliJ configs...
44

55
setlocal enableDelayedExpansion
66

7-
for /D %%i in (%userprofile%\.AndroidStudio*) do call :copy_config %%i
8-
for /D %%i in (%userprofile%\.IdeaIC*) do call :copy_config %%i
9-
for /D %%i in (%userprofile%\.IntelliJIdea*) do call :copy_config %%i
7+
for /D %%i in ("%userprofile%"\.AndroidStudio*) do call :copy_config "%%i"
8+
for /D %%i in ("%userprofile%"\.IdeaIC*) do call :copy_config "%%i"
9+
for /D %%i in ("%userprofile%"\.IntelliJIdea*) do call :copy_config "%%i"
1010

1111
echo.
1212
echo Restart IntelliJ and/or AndroidStudio, go to preferences, and apply 'Square' or 'SquareAndroid'.
@@ -15,8 +15,8 @@ exit /b
1515
REM sub function for copy config files
1616
:copy_config
1717
set config_dir=%~1\config
18-
echo Installing to !config_dir!
19-
xcopy /s configs !config_dir!
18+
echo Installing to "!config_dir!"
19+
xcopy /s configs "!config_dir!"
2020
echo Done.
2121
echo.
2222
exit /b

0 commit comments

Comments
 (0)