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

STDERR
This commit is contained in:
jrenslin committed 2020-12-09 13:34:31 +01:00
1 parent d028ac0176
commit 287fb02f8c
1 file changed
+1 -1
+1 -1
View File
@@ -441,7 +441,7 @@ public static function ensure_file(string $filepath, array $accepted_mimetype =
*/
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);
}