Skip to content

Commit

Permalink
Fix usage of none for services list (#495)
Browse files Browse the repository at this point in the history
* fix issue #492

php artisan sail:install --with=none not handled properly

* Update InstallCommand.php

* formatting

Co-authored-by: Dries Vints <[email protected]>
Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
3 people authored Nov 21, 2022
1 parent 8a1f66a commit 0dbee88
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/Console/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}
}

Expand Down

0 comments on commit 0dbee88

Please sign in to comment.