FIX CMDER_ROOT for admin launch

When launching a cmd in admin mode, if %ConEmuDir%\..\.. contains any space, it breaks the scripts.
Thanks to this patch, the path is correctly defined now.
This commit is contained in:
Stéphane 2014-11-04 12:26:25 +01:00
parent 25991ac6a1
commit ea3863bc6b

2
vendor/init.bat vendored
View File

@ -4,7 +4,7 @@
:: Find root dir
@if not defined CMDER_ROOT (
for /f %%i in ("%ConEmuDir%\..\..") do @set CMDER_ROOT=%%~fi
for /f "delims=" %%i in ("%ConEmuDir%\..\..") do @set CMDER_ROOT=%%~fi
)
:: Change the prompt style