Skip to content

Commit

Permalink
Merge pull request #1921 from mtrmac/inspect-tabs
Browse files Browse the repository at this point in the history
Fix tabelating output in (skopeo inspect --format)
  • Loading branch information
vrothberg authored Feb 23, 2023
2 parents d833619 + 1c3d49f commit 371604b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/skopeo/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,5 +246,8 @@ func printTmpl(stdout io.Writer, row string, data []any) error {
return err
}
w := tabwriter.NewWriter(stdout, 8, 2, 2, ' ', 0)
return t.Execute(w, data)
if err := t.Execute(w, data); err != nil {
return err
}
return w.Flush()
}

0 comments on commit 371604b

Please sign in to comment.