From 0dbee8802e17911afbe29a8506316343829b056e Mon Sep 17 00:00:00 2001 From: jf-prevost Date: Mon, 21 Nov 2022 16:19:18 +0000 Subject: [PATCH] Fix usage of none for services list (#495) * fix issue #492 php artisan sail:install --with=none not handled properly * Update InstallCommand.php * formatting Co-authored-by: Dries Vints Co-authored-by: Taylor Otwell --- src/Console/InstallCommand.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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.'); } }