From dabff9be778d770865dd2feee8566e86e38cd022 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Tue, 23 Feb 2021 21:41:32 -0500 Subject: [PATCH] run_cmd: Fix PATH debug log message --- src/node/utils/run_cmd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.