run_cmd: Fix PATH debug log message

pull/4854/head
Richard Hansen 2021-02-23 21:41:32 -05:00
parent c7511b2f2e
commit dabff9be77
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ module.exports = exports = (args, opts = {}) => {
...(PATH ? PATH.split(path.delimiter) : []), ...(PATH ? PATH.split(path.delimiter) : []),
].join(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 // 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. // process's `exit` handler so that we get a useful stack trace.