Skip to content

Commit

Permalink
Problem: podman output has extra newlines
Browse files Browse the repository at this point in the history
This makes output less pretty.

Solution: strip the output
  • Loading branch information
yrashk committed Feb 8, 2025
1 parent 7d36b92 commit 109d3e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pgpm/podman.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module Pgpm
module Podman
def self.run(command, unhandled_reboot_mitigation: true, print_stdout: true)
result = TTY::Command.new(printer: :null).run("podman #{command}", pty: true) do |out, err|
warn out if print_stdout
$stderr.print(out.strip) if print_stdout
warn err
end

Expand Down

0 comments on commit 109d3e5

Please sign in to comment.