diff --git a/src/NewCommand.php b/src/NewCommand.php index 60f3dc2..fd3b389 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -879,7 +879,7 @@ protected function runCommands($commands, InputInterface $input, OutputInterface }, $commands); } - if (! $output->isVerbose()) { + if (! $output->isVerbose() && $this->canUseSpinner($input, $output)) { $commands = array_map(function ($value) { if (str_starts_with($value, 'chmod')) { return $value; @@ -935,7 +935,11 @@ protected function runCommand(string $command, InputInterface $input, OutputInte } } - return tap($process)->run(); + $process->run(function ($type, $line) use ($output) { + $output->write(' '.$line); + }); + + return $process; } /**