chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b30bef
)
machinectl: show list headers even if we pipe, since that appears to be the usual way
author
Lennart Poettering
<lennart@poettering.net>
Thu, 7 Nov 2013 20:28:15 +0000
(21:28 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 7 Nov 2013 20:28:15 +0000
(21:28 +0100)
src/machine/machinectl.c
patch
|
blob
|
history
diff --git
a/src/machine/machinectl.c
b/src/machine/machinectl.c
index 7feb7be3da69fb7f5f27052dd479901acd3eb996..4b8351c98a95735fe9cd2f18df21bc71c3731379 100644
(file)
--- a/
src/machine/machinectl.c
+++ b/
src/machine/machinectl.c
@@
-84,8
+84,7
@@
static int list_machines(sd_bus *bus, char **args, unsigned n) {
return r;
}
- if (on_tty())
- printf("%-32s %-9s %-16s\n", "MACHINE", "CONTAINER", "SERVICE");
+ printf("%-32s %-9s %-16s\n", "MACHINE", "CONTAINER", "SERVICE");
r = sd_bus_message_enter_container(reply, SD_BUS_TYPE_ARRAY, "(ssso)");
if (r < 0)
@@
-103,8
+102,7
@@
static int list_machines(sd_bus *bus, char **args, unsigned n) {
if (r < 0)
return bus_log_parse_error(r);
- if (on_tty())
- printf("\n%u machines listed.\n", k);
+ printf("\n%u machines listed.\n", k);
return 0;
}