1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 19:47:45 +00:00

chgrp: adjust the output with group

This commit is contained in:
Sylvestre Ledru 2025-01-12 21:13:07 +01:00
parent c45bbe3d1c
commit 8e9a4b5f9a

View file

@ -468,10 +468,14 @@ impl ChownExecutor {
} }
_ => entries::uid2usr(uid).unwrap_or_else(|_| uid.to_string()), _ => entries::uid2usr(uid).unwrap_or_else(|_| uid.to_string()),
}; };
if self.verbosity.groups_only {
println!("group of {} retained as {}", path.quote(), ownership);
} else {
println!("ownership of {} retained as {}", path.quote(), ownership); println!("ownership of {} retained as {}", path.quote(), ownership);
} }
} }
} }
}
pub mod options { pub mod options {
pub const HELP: &str = "help"; pub const HELP: &str = "help";