Also copy the script env

This commit is contained in:
Alexandre Aubin 2020-12-05 21:06:23 +01:00
parent 2428f01521
commit 81f3b493e4

View file

@ -397,9 +397,12 @@ def _hook_exec_bash(path, args, chdir, env, return_format, loggers):
logger.debug("Executing command '%s'" % cmd)
_env = os.environ.copy()
_env.update(env)
returncode = call_async_output(
cmd, loggers, shell=True, cwd=chdir,
stdinfo=stdinfo, env=env
stdinfo=stdinfo, env=_env
)
raw_content = None