update hooks functions
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
use crate::commands::link::link;
|
||||
use crate::utils::parser::{self, env::get_install_env};
|
||||
use crate::utils::shell::{run_install_script,run_install_script_hook};
|
||||
use crate::utils::shell;
|
||||
|
||||
|
||||
pub fn config(repo: &String, pkgname: &String) {
|
||||
@ -13,8 +13,10 @@ pub fn config(repo: &String, pkgname: &String) {
|
||||
};
|
||||
|
||||
let full_env = get_install_env(repo, pkgname, pkg_md_path, "config");
|
||||
run_install_script(&config_script, pkg_dir, &full_env);
|
||||
run_install_script_hook(repo, "config", &full_env);
|
||||
shell::run_install_script(&config_script, pkg_dir, &full_env);
|
||||
shell::run_install_repo_stage_hook_script(repo, "config", &full_env);
|
||||
shell::run_install_stage_hook_script("download", &full_env);
|
||||
|
||||
|
||||
if !crate::commands::get_aeropkg_base().join(repo).join(pkgname).join("disabled").exists() {
|
||||
link(repo, pkgname)
|
||||
|
||||
Reference in New Issue
Block a user