change package search to partial match

This commit is contained in:
Derek Macias 2016-02-23 09:08:42 -07:00
parent ca812a8db9
commit ec2f883f3b

View File

@ -28,7 +28,7 @@ foreach ($pkgs_github_array as $pkg_github) {
$pkg_pattern = '/^'.$pkg_name.'.*/'; // search patter for packages $pkg_pattern = '/^'.$pkg_name.'.*/'; // search patter for packages
$plugins = []; $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 = '--'; $pkg_plgs = '--';
if ($plugins){ if ($plugins){
foreach ($plugins as $plugin){ foreach ($plugins as $plugin){