Skip to content

Commit cbc9410

Browse files
Update InstallCommand.php (#830)
fixes issue when frankenphp install fails when no-interaction flag is present
1 parent 9827e0b commit cbc9410

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Commands/InstallCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,10 @@ public function installSwooleServer()
126126
*/
127127
public function installFrankenPhpServer()
128128
{
129-
if (! $this->confirm("FrankenPHP's Octane integration is in beta and should be used with caution in production. Do you wish to continue?")) {
129+
if ($this->option('no-interaction')) {
130+
$this->info("FrankenPHP's Octane integration is in beta and should be used with caution in production.");
131+
$this->newLine();
132+
} elseif (! $this->confirm("FrankenPHP's Octane integration is in beta and should be used with caution in production. Do you wish to continue?")) {
130133
return false;
131134
}
132135

0 commit comments

Comments
 (0)