forked from FoundKeyGang/FoundKey
Refactor: Add @otofune's note
https://github.com/syuilo/misskey/pull/75#issue-203103115
This commit is contained in:
parent
2110cbc942
commit
b158af745e
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue