Skip to content

Commit

Permalink
Don't write new line when printing outputs (#3275)
Browse files Browse the repository at this point in the history
If the output is a binary format, then newlines can mess that up if
directly using the value of the output.

Signed-off-by: Leo Bergnéhr <leo@bergnehr.se>
  • Loading branch information
lbergnehr authored Dec 7, 2024
1 parent 48de62e commit 61dfc21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/porter/outputs.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (p *Porter) ShowBundleOutput(ctx context.Context, opts *OutputShowOptions)
return fmt.Errorf("unable to read output '%s' for installation '%s/%s': %w", opts.Output, opts.Namespace, opts.Name, err)
}

fmt.Fprintln(p.Out, output)
fmt.Fprint(p.Out, output)
return nil
}

Expand Down

0 comments on commit 61dfc21

Please sign in to comment.