mirror of
https://github.com/systemd/systemd.git
synced 2024-11-27 04:03:36 +08:00
machinectl: suppress redirection notice if --quiet is specified
This commit is contained in:
parent
fa693fdc7e
commit
8b29949a41
@ -1958,7 +1958,8 @@ static int clean_images(int argc, char *argv[], void *userdata) {
|
|||||||
static int chainload_importctl(int argc, char *argv[]) {
|
static int chainload_importctl(int argc, char *argv[]) {
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
log_notice("The 'machinectl %1$s' command has been replaced by 'importctl -m %1$s'. Redirecting invocation.", argv[optind]);
|
if (!arg_quiet)
|
||||||
|
log_notice("The 'machinectl %1$s' command has been replaced by 'importctl -m %1$s'. Redirecting invocation.", argv[optind]);
|
||||||
|
|
||||||
_cleanup_strv_free_ char **c =
|
_cleanup_strv_free_ char **c =
|
||||||
strv_new("importctl", "--class=machine");
|
strv_new("importctl", "--class=machine");
|
||||||
|
Loading…
Reference in New Issue
Block a user