Refactor: Add @otofune's note
https://github.com/syuilo/misskey/pull/75#issue-203103115
This commit is contained in:
		| @@ -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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo