Skip to content

Commit

Permalink
fix(get_current_user_name): remove trailing whitespaces
Browse files Browse the repository at this point in the history
Remove traling whitespaces from `id -un` output.

Signed-off-by: Miguel Martín <[email protected]>
  • Loading branch information
mmartinv committed Mar 4, 2024
1 parent c132b63 commit 5c69cdf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions util/src/system_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ pub fn get_current_user_name() -> String {
.stdout,
)
.expect("Unable to read current user name")
.trim()
.to_string()
}

0 comments on commit 5c69cdf

Please sign in to comment.