From: Lennart Poettering Date: Fri, 31 May 2024 10:12:24 +0000 (+0200) Subject: machinectl: suppress redirection notice if --quiet is specified X-Git-Tag: v257-rc1~507 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b29949a4142318bacf3d30751aa37b8f29b5c1e;p=thirdparty%2Fsystemd.git machinectl: suppress redirection notice if --quiet is specified --- diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c index 80c2522f9a3..934cfb27742 100644 --- a/src/machine/machinectl.c +++ b/src/machine/machinectl.c @@ -1958,7 +1958,8 @@ static int clean_images(int argc, char *argv[], void *userdata) { static int chainload_importctl(int argc, char *argv[]) { 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 = strv_new("importctl", "--class=machine");