summaryrefslogtreecommitdiff
path: root/src/utils/dependencyInfo.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/dependencyInfo.ts')
-rw-r--r--src/utils/dependencyInfo.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/dependencyInfo.ts b/src/utils/dependencyInfo.ts
index c7c1441ec1..8c3014d302 100644
--- a/src/utils/dependencyInfo.ts
+++ b/src/utils/dependencyInfo.ts
@@ -16,6 +16,8 @@ export default class {
show(serviceName: string, command: string, transform: (x: string) => RegExpMatchArray): void {
try {
+ // ステータス0以外のときにexecSyncはstderrをコンソール上に出力してしまうので
+ // プロセスからのstderrをすべて無視するように stdio オプションをセット
const x = execSync(command, { stdio: ['pipe', 'pipe', 'ignore'] });
const ver = transform(x.toString());
if (ver != null) {