diff --git a/src/node/utils/run_cmd.js b/src/node/utils/run_cmd.js index f4bc59bd1..bf5515c84 100644 --- a/src/node/utils/run_cmd.js +++ b/src/node/utils/run_cmd.js @@ -112,7 +112,7 @@ module.exports = exports = (args, opts = {}) => { ...(PATH ? PATH.split(path.delimiter) : []), ].join(path.delimiter), }; - logger.debug(`${pathVarName}=${env[pathVarName]}`); + logger.debug(`${pathVarName}=${opts.env[pathVarName]}`); // Create an error object to use in case the process fails. This is done here rather than in the // process's `exit` handler so that we get a useful stack trace.