From 287fb02f8cee8ce87675df69aaf51a6aaa3e606a Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Wed, 9 Dec 2020 13:34:31 +0100 Subject: [PATCH] Pipe STDOUT to /dev/null in MD_STD::exec_edit, actual STDOUT is for STDERR --- MD_STD.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MD_STD.php b/MD_STD.php index b9e1578..14451c3 100644 --- a/MD_STD.php +++ b/MD_STD.php @@ -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); }