From 4b2a61f1b8b786600e39ba1a223ff8d9b389b275 Mon Sep 17 00:00:00 2001 From: Manuel RĂ¼ger Date: Sun, 19 Apr 2020 13:00:43 +0200 Subject: rc-status: Remove noise from ini-formatted output Otherwise this would create the following output: rc-status -f ini * Caching service dependencies ... [ ok ] [default] dbus = started NetworkManager = started syslog-ng = started ... This fixes #364. --- src/rc/rc-status.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/rc') diff --git a/src/rc/rc-status.c b/src/rc/rc-status.c index d2f66cb4..cd32c091 100644 --- a/src/rc/rc-status.c +++ b/src/rc/rc-status.c @@ -291,9 +291,10 @@ int main(int argc, char **argv) goto exit; /* NOTREACHED */ case 'f': - if (strcasecmp(optarg, "ini") == 0) + if (strcasecmp(optarg, "ini") == 0) { format = FORMAT_INI; - else + setenv("EINFO_QUIET", "YES", 1); + } else eerrorx("%s: invalid argument to --format switch\n", applet); break; case 'l': -- cgit v1.2.3