diff --git a/src/functions/users.rs b/src/functions/users.rs index 0d2bf7e..9cdca2a 100755 --- a/src/functions/users.rs +++ b/src/functions/users.rs @@ -66,13 +66,7 @@ pub fn new_user(username: &str, hasroot: bool, password: &str, do_hash_pass: boo files::append_file("/mnt/etc/sudoers", "\nDefaults pwfeedback\n"), "Add pwfeedback to sudoers", ); - files_eval( - Ok(files::create_file(&format!( - "/mnt/var/lib/AccountsService/users/{}", - username - ))), - format!("Create AccountsService user file for {}", username).as_str(), - ); + files::create_file(&format!("/mnt/var/lib/AccountsService/users/{}", username)); files_eval( files::append_file( &format!("/mnt/var/lib/AccountsService/users/{}", username),