mirror of
https://github.com/cmderdev/cmder.git
synced 2025-01-11 00:39:08 +08:00
allow conditionally setting environment variables
This commit is contained in:
parent
f84da84e15
commit
564ef5220e
4
vendor/bin/cexec.cmd
vendored
4
vendor/bin/cexec.cmd
vendored
@ -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
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user