mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
If <prefix> does not exist, then call safe_mkdir on it.
This commit is contained in:
parent
1834f481e3
commit
e6d436e8d0
@ -565,7 +565,9 @@ function install_package_xml($pkg) {
|
||||
} else {
|
||||
$prefix = "/usr/local/pkg/";
|
||||
}
|
||||
$static_output .= $filename . " ";
|
||||
if(!is_dir($prefix))
|
||||
safe_mkdir($prefix);
|
||||
$static_output .= $filename . " ";
|
||||
update_output_window($static_output);
|
||||
download_file_with_progress_bar($afn['item'][0], $prefix . $filename);
|
||||
if(stristr($filename, ".tgz") <> "") {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user