From 90ecb8104e7847b73f058d07d44c675b28117d45 Mon Sep 17 00:00:00 2001 From: Maksim An Date: Tue, 18 Jul 2023 10:16:54 -0700 Subject: [PATCH] fix: `ctr images check` outputs not unpacked images in quite mode `ctr images check -q` shouldn't output images which were not unpacked. Signed-off-by: Maksim An --- cmd/ctr/commands/images/images.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ctr/commands/images/images.go b/cmd/ctr/commands/images/images.go index f36008918..e5caa96f4 100644 --- a/cmd/ctr/commands/images/images.go +++ b/cmd/ctr/commands/images/images.go @@ -300,7 +300,7 @@ var checkCommand = cli.Command{ size, unpacked) } else { - if complete { + if complete && unpacked { fmt.Println(image.Name()) } }