X-Git-Url: http://source.bookstackapp.com/system-cli/blobdiff_plain/a69f2bc809fa3ea207cc138e0443dfb310b2a763..154a3ff7220d9c6ceb7ce06cb39e9b8e5b0ef558:/scripts/Services/ProgramRunner.php diff --git a/scripts/Services/ProgramRunner.php b/scripts/Services/ProgramRunner.php index ee7492a..eb3bda7 100644 --- a/scripts/Services/ProgramRunner.php +++ b/scripts/Services/ProgramRunner.php @@ -46,7 +46,7 @@ class ProgramRunner { $output = ''; $callable = function ($data) use (&$output) { - $output .= $data . "\n"; + $output .= $data; }; $this->runWithoutOutputCallbacks($args, $callable, $callable); @@ -57,7 +57,7 @@ class ProgramRunner { $err = ''; $this->runWithoutOutputCallbacks($args, fn() => '', function ($data) use (&$err) { - $err .= $data . "\n"; + $err .= $data; }); return $err; }