Pipe STDOUT to /dev/null in MD_STD::exec_edit, actual STDOUT is for

STDERR
This commit is contained in:
Joshua Ramon Enslin 2020-12-09 13:34:31 +01:00
parent d028ac0176
commit 287fb02f8c
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -441,7 +441,7 @@ final class MD_STD {
*/
public static function exec_edit(string $cmds):void {
$error = \shell_exec($cmds . ' 2>&1');
$error = \shell_exec($cmds . ' 2>&1 1>/dev/null');
if (!empty($error)) {
throw new \Exception('Shell error: ' . $error . PHP_EOL . PHP_EOL . 'Command was: ' . $cmds);
}