mirror of
https://github.com/cmderdev/cmder.git
synced 2025-01-11 08:49: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
|
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
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user