mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 04:13:09 +02:00
✨
This commit is contained in:
parent
677f3b559e
commit
58433bcb97
1 changed files with 5 additions and 5 deletions
|
@ -13,17 +13,17 @@ function checkDependency(serviceName: string, command: string, transform: (x: st
|
||||||
success: 0,
|
success: 0,
|
||||||
notFound: 127
|
notFound: 127
|
||||||
};
|
};
|
||||||
let depsLogger = new Logger('Deps');
|
let logger = new Logger('Deps');
|
||||||
const x = exec(command, { silent: true }) as any;
|
const x = exec(command, { silent: true }) as any;
|
||||||
if (x.code === code.success) {
|
if (x.code === code.success) {
|
||||||
let ver = transform(x.stdout);
|
let ver = transform(x.stdout);
|
||||||
if (ver != null) {
|
if (ver != null) {
|
||||||
depsLogger.info(`${serviceName} ${ver[1]} found`);
|
logger.info(`${serviceName} ${ver[1]} found`);
|
||||||
} else {
|
} else {
|
||||||
depsLogger.warn(`${serviceName} not found`);
|
logger.warn(`${serviceName} not found`);
|
||||||
depsLogger.warn(`Regexp used for version check of ${serviceName} is probably messed up`);
|
logger.warn(`Regexp used for version check of ${serviceName} is probably messed up`);
|
||||||
}
|
}
|
||||||
} else if (x.code === code.notFound) {
|
} else if (x.code === code.notFound) {
|
||||||
depsLogger.warn(`${serviceName} not found`);
|
logger.warn(`${serviceName} not found`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue