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

Loading…
Cancel
Save