From 1d1b20cfebeeae217c5c7ac3aab7de0f768f3a0e Mon Sep 17 00:00:00 2001 From: Scott Carpenter Date: Tue, 24 Oct 2023 13:51:40 -0600 Subject: [PATCH] Directly call `$this->getOutput()->write()` to avoid an extra newline --- app/Commands/TailCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Commands/TailCommand.php b/app/Commands/TailCommand.php index 9d147e2..9645580 100644 --- a/app/Commands/TailCommand.php +++ b/app/Commands/TailCommand.php @@ -88,7 +88,7 @@ private function tail(Collection $files) $line = fgets($$name); if ($line !== false) { - $this->line($line); + $this->getOutput()->write($line); } else { usleep(0.1 * 1000000); fseek($$name, ftell($$name));