chgrp: adjust the output with group

This commit is contained in:
Sylvestre Ledru
2025-01-23 22:38:38 +01:00
parent c45bbe3d1c
commit 8e9a4b5f9a
+5 -1
View File
@@ -468,7 +468,11 @@ impl ChownExecutor {
}
_ => entries::uid2usr(uid).unwrap_or_else(|_| uid.to_string()),
};
println!("ownership of {} retained as {}", path.quote(), ownership);
if self.verbosity.groups_only {
println!("group of {} retained as {}", path.quote(), ownership);
} else {
println!("ownership of {} retained as {}", path.quote(), ownership);
}
}
}
}