mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
chgrp: adjust the output with group
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user