Skip to content
Snippets Groups Projects
Commit 58433bcb authored by Aya Morisawa's avatar Aya Morisawa
Browse files

parent 677f3b55
No related branches found
No related tags found
No related merge requests found
......@@ -13,17 +13,17 @@ function checkDependency(serviceName: string, command: string, transform: (x: st
success: 0,
notFound: 127
};
let depsLogger = new Logger('Deps');
let logger = new Logger('Deps');
const x = exec(command, { silent: true }) as any;
if (x.code === code.success) {
let ver = transform(x.stdout);
if (ver != null) {
depsLogger.info(`${serviceName} ${ver[1]} found`);
logger.info(`${serviceName} ${ver[1]} found`);
} else {
depsLogger.warn(`${serviceName} not found`);
depsLogger.warn(`Regexp used for version check of ${serviceName} is probably messed up`);
logger.warn(`${serviceName} not found`);
logger.warn(`Regexp used for version check of ${serviceName} is probably messed up`);
}
} else if (x.code === code.notFound) {
depsLogger.warn(`${serviceName} not found`);
logger.warn(`${serviceName} not found`);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment