Skip to content

Commit

Permalink
Merge pull request #940 from janschulz/init.bat
Browse files Browse the repository at this point in the history
Add quotes around all variables
  • Loading branch information
Stanzilla committed May 5, 2016
2 parents 7eb7255 + 1bf5503 commit 05fb436
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions vendor/init.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if not defined CMDER_ROOT (
)

:: Remove trailing '\'
if "%CMDER_ROOT:~-1%" == "\" SET CMDER_ROOT=%CMDER_ROOT:~0,-1%
if "%CMDER_ROOT:~-1%" == "\" SET "CMDER_ROOT=%CMDER_ROOT:~0,-1%"

:: Change the prompt style
:: Mmm tasty lamb
Expand All @@ -27,8 +27,8 @@ if "%PROCESSOR_ARCHITECTURE%"=="x86" (

:: Tell the user about the clink config files...
if not exist "%CMDER_ROOT%\config\settings" (
echo Generating clink initial settings in %CMDER_ROOT%\config\settings
echo Additional *.lua files in %CMDER_ROOT%\config are loaded on startup.
echo Generating clink initial settings in "%CMDER_ROOT%\config\settings"
echo Additional *.lua files in "%CMDER_ROOT%\config" are loaded on startup.
)

:: Run clink
Expand Down Expand Up @@ -100,7 +100,7 @@ if not exist "%CMDER_ROOT%\config\profile.d" (

pushd "%CMDER_ROOT%\config\profile.d"
for /f "usebackq" %%x in ( `dir /b *.bat *.cmd 2^>nul` ) do (
REM echo Calling %CMDER_ROOT%\config\profile.d\%%x...
REM echo Calling "%CMDER_ROOT%\config\profile.d\%%x"...
call "%CMDER_ROOT%\config\profile.d\%%x"
)
popd
Expand Down Expand Up @@ -157,8 +157,8 @@ if exist "%CMDER_ROOT%\config\user-profile.cmd" (
echo :: use this file to run your own startup commands
echo :: use in front of the command to prevent printing the command
echo.
echo :: call "%%GIT_INSTALL_ROOT%%/cmd/start-ssh-agent.cmd
echo :: set PATH=%%CMDER_ROOT%%\vendor\whatever;%%PATH%%
echo :: call "%%GIT_INSTALL_ROOT%%/cmd/start-ssh-agent.cmd"
echo :: set "PATH=%%CMDER_ROOT%%\vendor\whatever;%%PATH%%"
echo.
) > "%CMDER_ROOT%\config\user-profile.cmd"
)

0 comments on commit 05fb436

Please sign in to comment.