change package search to partial match
This commit is contained in:
parent
ca812a8db9
commit
ec2f883f3b
|
@ -28,7 +28,7 @@ foreach ($pkgs_github_array as $pkg_github) {
|
|||
$pkg_pattern = '/^'.$pkg_name.'.*/'; // search patter for packages
|
||||
|
||||
$plugins = [];
|
||||
exec("cd /boot/config/plugins ; find *.plg | xargs grep '${pkg_github['name']}' -sl",$plugins);
|
||||
exec("cd /boot/config/plugins ; find *.plg | xargs grep '${pkg_name}-${pkg_version}' -sl",$plugins);
|
||||
$pkg_plgs = '--';
|
||||
if ($plugins){
|
||||
foreach ($plugins as $plugin){
|
||||
|
|
Loading…
Reference in New Issue
Block a user