diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-01-21 03:44:11 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-01-21 03:44:11 +0100 |
commit | d1f262fa46a1ae9450d3a9aa1f103a16120de350 (patch) | |
tree | 7145946a649f0852913bcbdb27429256e0c25851 /src/systemctl.c | |
parent | util: open the first RTC that has hctosys=1 set (diff) | |
download | systemd-d1f262fa46a1ae9450d3a9aa1f103a16120de350.tar.xz systemd-d1f262fa46a1ae9450d3a9aa1f103a16120de350.zip |
systemctl: don't show ln -s/rm output in 'install' mode if --quiet is passed
Diffstat (limited to 'src/systemctl.c')
-rw-r--r-- | src/systemctl.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/src/systemctl.c b/src/systemctl.c index d7d7d67984..cb59fd6db2 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -3688,11 +3688,13 @@ static int enable_unit(DBusConnection *bus, char **args) { goto finish; } - for (i = 0; i < n_changes; i++) { - if (changes[i].type == UNIT_FILE_SYMLINK) - log_info("ln -s '%s' '%s'", changes[i].source, changes[i].path); - else - log_info("rm '%s'", changes[i].path); + if (!arg_quiet) { + for (i = 0; i < n_changes; i++) { + if (changes[i].type == UNIT_FILE_SYMLINK) + log_info("ln -s '%s' '%s'", changes[i].source, changes[i].path); + else + log_info("rm '%s'", changes[i].path); + } } } else { @@ -3808,10 +3810,12 @@ static int enable_unit(DBusConnection *bus, char **args) { goto finish; } - if (streq(type, "symlink")) - log_info("ln -s '%s' '%s'", source, path); - else - log_info("rm '%s'", path); + if (!arg_quiet) { + if (streq(type, "symlink")) + log_info("ln -s '%s' '%s'", source, path); + else + log_info("rm '%s'", path); + } dbus_message_iter_next(&sub); } |