patch pkg run
This commit is contained in:
@ -4,7 +4,7 @@ use crate::utils::shell::{run_install_script,run_install_script_hook};
|
||||
|
||||
|
||||
pub fn config(repo: &String, pkgname: &String) {
|
||||
let src_dir = &crate::commands::get_aeropkg_base().join("src").join(pkgname);
|
||||
let pkg_dir = &crate::commands::get_aeropkg_base().join(repo).join(pkgname);
|
||||
let pkg_md_path = &crate::commands::get_aeropkg_var().join(format!("{}/{}.md", repo, pkgname));
|
||||
|
||||
let config_script = match parser::get_config_script(pkg_md_path) {
|
||||
@ -13,7 +13,7 @@ pub fn config(repo: &String, pkgname: &String) {
|
||||
};
|
||||
|
||||
let full_env = get_install_env(repo, pkgname, pkg_md_path, "config");
|
||||
run_install_script(&config_script, src_dir, &full_env);
|
||||
run_install_script(&config_script, pkg_dir, &full_env);
|
||||
run_install_script_hook(repo, "config", &full_env);
|
||||
|
||||
link(repo, pkgname)
|
||||
|
||||
Reference in New Issue
Block a user