imagetools: avoid printing newline on raw mode

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi 2019-10-28 16:14:35 -07:00
parent 714f181d81
commit eb1aabe9e3
1 changed files with 1 additions and 1 deletions

View File

@ -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
}