imagetools: avoid printing newline on raw mode

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
pull/182/head
Tonis Tiigi 5 years ago
parent 714f181d81
commit eb1aabe9e3

@ -30,7 +30,7 @@ func runInspect(dockerCli command.Cli, in inspectOptions, name string) error {
} }
if in.raw { if in.raw {
fmt.Printf("%s\n", dt) fmt.Printf("%s", dt) // avoid newline to keep digest
return nil return nil
} }

Loading…
Cancel
Save