make it actually output the install status and pass the returncode to exec_eval

axtloss/rework-partitioning
amy 3 years ago
parent ccec34b2eb
commit caff22cb3e

@ -1,9 +1,9 @@
use std::process::Command;
use crate::internal::*;
pub fn install(pkgs: Vec<&str>) {
Command::new("crystalstrap")
exec_eval(Command::new("crystalstrap")
.arg("/mnt")
.args(pkgs)
.output()
.expect("Failed to install packages");
.args(&pkgs)
.status(), format!("Install packages {}", pkgs.join(", ")).as_str());
}

Loading…
Cancel
Save