mirror of
https://github.com/systemd/systemd.git
synced 2024-11-08 11:27:32 +03:00
systemctl: don't show ln -s/rm output in 'install' mode if --quiet is passed
This commit is contained in:
parent
51122dc9e3
commit
d1f262fa46
@ -3688,11 +3688,13 @@ static int enable_unit(DBusConnection *bus, char **args) {
|
|||||||
goto finish;
|
goto finish;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < n_changes; i++) {
|
if (!arg_quiet) {
|
||||||
if (changes[i].type == UNIT_FILE_SYMLINK)
|
for (i = 0; i < n_changes; i++) {
|
||||||
log_info("ln -s '%s' '%s'", changes[i].source, changes[i].path);
|
if (changes[i].type == UNIT_FILE_SYMLINK)
|
||||||
else
|
log_info("ln -s '%s' '%s'", changes[i].source, changes[i].path);
|
||||||
log_info("rm '%s'", changes[i].path);
|
else
|
||||||
|
log_info("rm '%s'", changes[i].path);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@ -3808,10 +3810,12 @@ static int enable_unit(DBusConnection *bus, char **args) {
|
|||||||
goto finish;
|
goto finish;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (streq(type, "symlink"))
|
if (!arg_quiet) {
|
||||||
log_info("ln -s '%s' '%s'", source, path);
|
if (streq(type, "symlink"))
|
||||||
else
|
log_info("ln -s '%s' '%s'", source, path);
|
||||||
log_info("rm '%s'", path);
|
else
|
||||||
|
log_info("rm '%s'", path);
|
||||||
|
}
|
||||||
|
|
||||||
dbus_message_iter_next(&sub);
|
dbus_message_iter_next(&sub);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user