diff --git a/src/Console/InstallCommand.php b/src/Console/InstallCommand.php index 1de61e10..2638c447 100644 --- a/src/Console/InstallCommand.php +++ b/src/Console/InstallCommand.php @@ -220,13 +220,22 @@ protected function prepareInstallation($services) return; } + if (count($services) > 0) { + $status = $this->runCommands([ + './vendor/bin/sail pull '.implode(' ', $services), + ]); + + if ($status === 0) { + $this->info('Sail images installed successfully.'); + } + } + $status = $this->runCommands([ - './vendor/bin/sail pull '.implode(' ', $services), './vendor/bin/sail build', ]); if ($status === 0) { - $this->info('Sail images installed successfully.'); + $this->info('Sail build successful.'); } }