mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
feat: use Process instead of bare commands
This commit is contained in:
parent
460ba2614d
commit
5de0bfde0d
1 changed files with 2 additions and 2 deletions
|
@ -12,6 +12,7 @@ use Illuminate\Database\DatabaseManager as DB;
|
|||
use Illuminate\Encryption\Encrypter;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Support\Facades\File;
|
||||
use Illuminate\Support\Facades\Process;
|
||||
use Illuminate\Support\Str;
|
||||
use Jackiedo\DotenvEditor\DotenvEditor;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
@ -330,8 +331,7 @@ class InitCommand extends Command
|
|||
|
||||
private static function runOkOrThrow(string $command): void
|
||||
{
|
||||
passthru($command, $status);
|
||||
throw_if((bool) $status, InstallationFailedException::class);
|
||||
throw_unless(Process::forever()->run($command)->successful(), InstallationFailedException::class);
|
||||
}
|
||||
|
||||
private function setMediaPathFromEnvFile(): void
|
||||
|
|
Loading…
Reference in a new issue