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.
This commit is contained in:
Manuel Rüger 2020-04-19 13:00:43 +02:00 committed by William Hubbs
parent 62bc463c63
commit 4b2a61f1b8

View File

@ -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':