make it actually output the install status and pass the returncode to exec_eval
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…
Reference in New Issue