formatting, add package json and desc to scandir filter
This commit is contained in:
		| @@ -16,7 +16,7 @@ $config_file = $plg_path.'NerdPack.cfg'; | ||||
| $pkg_cfg = (is_file($config_file)) ? parse_ini_file($config_file) : []; | ||||
|  | ||||
| // 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 | ||||
| $pkgs_installed = array_diff(scandir("/var/log/packages", 1), ['.', '..']); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user