mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-12 03:15:35 +08:00
fix: use apt-get instead of apt
This commit is contained in:
@@ -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'),
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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'),
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user