diff --git a/ts/src/local/conductor.ts b/ts/src/local/conductor.ts index 153b5af2..0751cb79 100644 --- a/ts/src/local/conductor.ts +++ b/ts/src/local/conductor.ts @@ -165,11 +165,11 @@ export class Conductor implements IConductor { const createConductorPromise = new Promise((resolve, reject) => { createConductorProcess.stdout.on("data", (data: Buffer) => { logger.debug(`creating conductor config\n${data.toString()}`); - const tmpDirMatches = data + const tmpDirMatches = [...data .toString() - .match(/ConfigRootPath\("(.*?)"\)/g); + .matchAll(/ConfigRootPath\("(.*?)"\)/g)]; if (tmpDirMatches) { - conductor.conductorDir = tmpDirMatches[0]; + conductor.conductorDir = tmpDirMatches[0][1]; } }); createConductorProcess.stdout.on("end", () => {