allow conditionally setting environment variables

This commit is contained in:
Dax T. Games 2018-09-15 16:25:31 -05:00
parent f84da84e15
commit 564ef5220e

View File

@ -55,12 +55,12 @@ set "feFlagName=%feFlagName% "
echo %CMDER_USER_FLAGS% | find /i "%feFlagName%">nul echo %CMDER_USER_FLAGS% | find /i "%feFlagName%">nul
if "%ERRORLEVEL%" == "0" ( if "%ERRORLEVEL%" == "0" (
if "%feNOT%" == "false" ( if "%feNOT%" == "false" (
call %feCommand% %feParam% endlocal && call %feCommand% %feParam%
exit /b 0 exit /b 0
) )
) else ( ) else (
if "%feNOT%" == "true" ( if "%feNOT%" == "true" (
call %feCommand% %feParam% endlocal && call %feCommand% %feParam%
exit /b 0 exit /b 0
) )
) )