diff --git a/core/command/remote.js b/core/command/remote.js index 1e0dd5f85..29adf0248 100644 --- a/core/command/remote.js +++ b/core/command/remote.js @@ -16,7 +16,11 @@ module.exports = { logger.log(`Starting remote with: ${commandStr} with env ${JSON.stringify(env)}`); - const child = exec(commandStr, {env: env}); + const child = exec(commandStr, { env: { ...env, 'PATH': process.env.PATH } }, (error) => { + if (error) { + logger.log("Error running backstop remote:", error); + } + }); child.stdout.on('data', logger.log);