mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
fix: use apt-get instead of apt
This commit is contained in:
parent
4c46f6a762
commit
15905c063a
@ -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'),
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user