From ea3863bc6b11c5e2190db4b5845a731f6d9dcb35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane?= Date: Tue, 4 Nov 2014 12:26:25 +0100 Subject: [PATCH] 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. --- vendor/init.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/init.bat b/vendor/init.bat index 308f93221..d657c0720 100644 --- a/vendor/init.bat +++ b/vendor/init.bat @@ -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