formatting, add package json and desc to scandir filter
This commit is contained in:
parent
45afd2f9e5
commit
9ad12b1a00
|
@ -16,7 +16,7 @@ $config_file = $plg_path.'NerdPack.cfg';
|
||||||
$pkg_cfg = (is_file($config_file)) ? parse_ini_file($config_file) : [];
|
$pkg_cfg = (is_file($config_file)) ? parse_ini_file($config_file) : [];
|
||||||
|
|
||||||
// get array of downloaded packages
|
// get array of downloaded packages
|
||||||
$pkgs_downloaded = file_exists($pkg_path) ? array_diff(scandir($pkg_path, 1), ['.', '..']) : [];
|
$pkgs_downloaded = file_exists($pkg_path) ? array_diff(scandir($pkg_path, 1), ['.', '..','packages.json','packages-desc']) : [];
|
||||||
|
|
||||||
// get array of all installed packages
|
// get array of all installed packages
|
||||||
$pkgs_installed = array_diff(scandir("/var/log/packages", 1), ['.', '..']);
|
$pkgs_installed = array_diff(scandir("/var/log/packages", 1), ['.', '..']);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user