summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-07 21:28:15 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-07 21:28:15 +0100
commit74c7b1ed052fc42d9841a5d83d310fa96124c47c (patch)
treea237549e579c88b37c85827f700ade51d97132bf
parent5b30bef856e89a571df57b7b953e9a1409d9aced (diff)
machinectl: show list headers even if we pipe, since that appears to be the usual way
-rw-r--r--src/machine/machinectl.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c
index 7feb7be3da..4b8351c98a 100644
--- 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;
}