fix: use apt-get instead of apt

This commit is contained in:
Kévin Dunglas 2023-08-21 21:47:35 +02:00 committed by Jerry Ma
parent 4c46f6a762
commit 15905c063a
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ class LinuxMuslCheck
public function fixMusl(array $distro): bool public function fixMusl(array $distro): bool
{ {
$install_cmd = match ($distro['dist']) { $install_cmd = match ($distro['dist']) {
'ubuntu', 'debian' => 'apt install musl musl-tools -y', 'ubuntu', 'debian' => 'apt-get install musl musl-tools -y',
'alpine' => 'apk add musl musl-utils musl-dev', 'alpine' => 'apk add musl musl-utils musl-dev',
default => throw new RuntimeException('Current linux distro is not supported for auto-install musl packages'), default => throw new RuntimeException('Current linux distro is not supported for auto-install musl packages'),
}; };

View File

@ -77,7 +77,7 @@ class LinuxToolCheckList
public function fixBuildTools(array $distro, array $missing): bool public function fixBuildTools(array $distro, array $missing): bool
{ {
$install_cmd = match ($distro['dist']) { $install_cmd = match ($distro['dist']) {
'ubuntu', 'debian' => 'apt install -y', 'ubuntu', 'debian' => 'apt-get install -y',
'alpine' => 'apk add', 'alpine' => 'apk add',
default => throw new RuntimeException('Current linux distro is not supported for auto-install musl packages'), default => throw new RuntimeException('Current linux distro is not supported for auto-install musl packages'),
}; };