mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
parent
01f687f09f
commit
b21e01bcb0
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ static SUMMARY: &str = "Determine architecture name for current machine.";
|
||||||
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||||
uu_app().get_matches_from(args);
|
uu_app().get_matches_from(args);
|
||||||
|
|
||||||
let uts = PlatformInfo::new().map_err_context(|| "arch: ".to_string())?;
|
let uts = PlatformInfo::new().map_err_context(|| "cannot get system name".to_string())?;
|
||||||
println!("{}", uts.machine().trim());
|
println!("{}", uts.machine().trim());
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue