Pipe STDOUT to /dev/null in MD_STD::exec_edit, actual STDOUT is for
STDERR
This commit is contained in:
parent
d028ac0176
commit
287fb02f8c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user