From cb5e43072a89706331703f246f54f48bffaeb590 Mon Sep 17 00:00:00 2001 From: axtloss Date: Wed, 24 Aug 2022 19:34:35 +0000 Subject: [PATCH] Update users.rs to not weirdly install packages --- src/functions/users.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/functions/users.rs b/src/functions/users.rs index 81502df..ae4d63a 100755 --- a/src/functions/users.rs +++ b/src/functions/users.rs @@ -19,17 +19,7 @@ pub fn new_user(username: &str, hasroot: bool, password: &str, do_hash_pass: boo "zsh" => "zsh", &_ => "bash", }; - exec_eval( - exec_chroot( - "bash", - vec![ - String::from("pacman -S "), - String::from(shell_to_install), - String::from("--noconfirm"), - ], - ), - format!("installed {shell:?}").as_str(), - ); + install::install(vec![shell_to_install]); let shell_path = match shell { "bash" => "/bin/bash", "csh" => "/usr/bin/csh",