mirror of
https://github.com/systemd/systemd.git
synced 2025-01-27 18:04:05 +03:00
systemctl: also color filenames of drop-ins in cat
This commit is contained in:
parent
09812eb764
commit
58684be9a7
@ -3823,9 +3823,11 @@ static int cat(sd_bus *bus, char **args) {
|
||||
}
|
||||
|
||||
STRV_FOREACH(path, dropin_paths) {
|
||||
printf("%s# %s\n",
|
||||
printf("%s%s# %s%s\n",
|
||||
isempty(fragment_path) && path == dropin_paths ? "" : "\n",
|
||||
*path);
|
||||
ansi_highlight_blue(),
|
||||
*path,
|
||||
ansi_highlight_off());
|
||||
fflush(stdout);
|
||||
|
||||
r = sendfile_full(STDOUT_FILENO, *path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user