Skip to content

Commit

Permalink
fix(get_current_user_name): remove trailing whitespaces.
Browse files Browse the repository at this point in the history
Use `-z` arg in `id` invocation to remove traling whitespaces.

Signed-off-by: Miguel Martín <[email protected]>
  • Loading branch information
mmartinv committed Mar 4, 2024
1 parent c132b63 commit 3896725
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions util/src/system_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pub fn get_current_user_name() -> String {
Command::new("id")
.arg("-u")
.arg("-n")
.arg("-z")
.output()
.expect("Unable to run `id` command")
.stdout,
Expand Down

0 comments on commit 3896725

Please sign in to comment.