mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
fix install-pkg different arch cache bug
This commit is contained in:
parent
8358a985b3
commit
632f904f30
@ -24,6 +24,7 @@ class PackageManager
|
||||
default => throw new WrongUsageException('Unsupported OS!'),
|
||||
};
|
||||
$config = Config::getPkg("{$pkg_name}-{$arch}-{$os}");
|
||||
$pkg_name = "{$pkg_name}-{$arch}-{$os}";
|
||||
}
|
||||
if ($config === null) {
|
||||
throw new WrongUsageException("Package [{$pkg_name}] does not exist, please check the name and correct it !");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user