Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function onLauncherConnect(slaveURL, info) {
var launcherConfig = attester.config["launcher-config"];
if (launcherConfig) {
if (!Array.isArray(launcherConfig)) {
launcherConfig = [launcherConfig];
}
if (attester.config["log-level"] >= 4) {
launcherConfig.unshift("--verbose");
}
launcherConfig.unshift(attester.config["colors"] ? "--colors" : "--no-colors");
launcherConfig.unshift("--server", info.homeURL);
launcherProcesss = attesterLauncher.exec(launcherConfig);
registerChildProcess(launcherProcesss);
launcherProcesss.stdout.pipe(process.stdout);
launcherProcesss.stderr.pipe(process.stderr);
launcherProcesss.on("exit", onLauncherExit);
}
}