added install logic to configure distrobox

to not pull the container image always.
this should save space, and fix cloning on
universal blue distros.
This commit is contained in:
pyro57000
2025-03-12 10:50:37 -05:00
parent bfa766a2c3
commit 854feb2e2a
2 changed files with 67 additions and 16 deletions

View File

@@ -369,22 +369,6 @@ pub fn promote_project(projects: &mut Vec<Project>, config_path: &PathBuf, proje
new_files_dir.push(&promoted_project.project_name);
new_notes_dir.push(&promoted_project.customer);
new_notes_dir.push(&promoted_project.project_name);
let files_dir_creation = fs::create_dir_all(&new_files_dir);
if files_dir_creation.is_err(){
let error = files_dir_creation.err().unwrap();
println!("error creating current files directory!");
println!("{}", error);
return;
}
files_dir_creation.unwrap();
let notes_dir_creation = fs::create_dir_all(&new_notes_dir);
if notes_dir_creation.is_err(){
let error = notes_dir_creation.err().unwrap();
println!("error creating current notes directory!");
println!("{}", error);
return;
}
notes_dir_creation.unwrap();
let folder_move_success = process::Command::new("mv")
.arg("-i")
.arg(&project.files_folder)