Skip to content

Commit 109d3e5

Browse files
committed
Problem: podman output has extra newlines
This makes output less pretty. Solution: strip the output
1 parent 7d36b92 commit 109d3e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pgpm/podman.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module Pgpm
88
module Podman
99
def self.run(command, unhandled_reboot_mitigation: true, print_stdout: true)
1010
result = TTY::Command.new(printer: :null).run("podman #{command}", pty: true) do |out, err|
11-
warn out if print_stdout
11+
$stderr.print(out.strip) if print_stdout
1212
warn err
1313
end
1414

0 commit comments

Comments
 (0)