Skip to content

Commit

Permalink
Update InstallCommand.php (#830)
Browse files Browse the repository at this point in the history
fixes issue when frankenphp install fails when no-interaction flag is present
  • Loading branch information
brunograndecom authored Feb 2, 2024
1 parent 9827e0b commit cbc9410
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ public function installSwooleServer()
*/
public function installFrankenPhpServer()
{
if (! $this->confirm("FrankenPHP's Octane integration is in beta and should be used with caution in production. Do you wish to continue?")) {
if ($this->option('no-interaction')) {
$this->info("FrankenPHP's Octane integration is in beta and should be used with caution in production.");
$this->newLine();
} elseif (! $this->confirm("FrankenPHP's Octane integration is in beta and should be used with caution in production. Do you wish to continue?")) {
return false;
}

Expand Down

0 comments on commit cbc9410

Please sign in to comment.