From 5c69cdfdd02297e40dc36508976ca8610694ee4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Mart=C3=ADn?= Date: Mon, 4 Mar 2024 08:03:42 +0100 Subject: [PATCH] fix(get_current_user_name): remove trailing whitespaces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove traling whitespaces from `id -un` output. Signed-off-by: Miguel Martín --- util/src/system_info.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/src/system_info.rs b/util/src/system_info.rs index 1198d6e64..367721421 100644 --- a/util/src/system_info.rs +++ b/util/src/system_info.rs @@ -10,4 +10,6 @@ pub fn get_current_user_name() -> String { .stdout, ) .expect("Unable to read current user name") + .trim() + .to_string() }