From eb1aabe9e343b87b04144e4397a162de78247ddd Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Mon, 28 Oct 2019 16:14:35 -0700 Subject: [PATCH] imagetools: avoid printing newline on raw mode Signed-off-by: Tonis Tiigi --- commands/imagetools/inspect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/imagetools/inspect.go b/commands/imagetools/inspect.go index 6ee673e8..0e2cf90c 100644 --- a/commands/imagetools/inspect.go +++ b/commands/imagetools/inspect.go @@ -30,7 +30,7 @@ func runInspect(dockerCli command.Cli, in inspectOptions, name string) error { } if in.raw { - fmt.Printf("%s\n", dt) + fmt.Printf("%s", dt) // avoid newline to keep digest return nil }