From caff22cb3e3189a6deec26b5faf1357e3ea0933b Mon Sep 17 00:00:00 2001 From: amy Date: Sun, 23 Jan 2022 15:46:56 +0100 Subject: [PATCH] make it actually output the install status and pass the returncode to exec_eval --- src/internal/install.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/internal/install.rs b/src/internal/install.rs index ece801c..46aa91a 100755 --- a/src/internal/install.rs +++ b/src/internal/install.rs @@ -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()); }