From 564ef5220e168893899ac1e6f25fba6a455ae065 Mon Sep 17 00:00:00 2001 From: "Dax T. Games" Date: Sat, 15 Sep 2018 16:25:31 -0500 Subject: [PATCH] allow conditionally setting environment variables --- vendor/bin/cexec.cmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/bin/cexec.cmd b/vendor/bin/cexec.cmd index b4bb81e..2efcacd 100644 --- a/vendor/bin/cexec.cmd +++ b/vendor/bin/cexec.cmd @@ -55,12 +55,12 @@ set "feFlagName=%feFlagName% " echo %CMDER_USER_FLAGS% | find /i "%feFlagName%">nul if "%ERRORLEVEL%" == "0" ( if "%feNOT%" == "false" ( - call %feCommand% %feParam% + endlocal && call %feCommand% %feParam% exit /b 0 ) ) else ( if "%feNOT%" == "true" ( - call %feCommand% %feParam% + endlocal && call %feCommand% %feParam% exit /b 0 ) )