Commit fb544ef6 authored by Samuel Giddins's avatar Samuel Giddins

[Executable] Fix to stop output leaking to the terminal

parent daf1e2db
...@@ -137,9 +137,9 @@ module Pod ...@@ -137,9 +137,9 @@ module Pod
case capture case capture
when :merge then Open3.capture2e(bin, *command) when :merge then Open3.capture2e(bin, *command)
when :both then Open3.capture3(bin, *command) when :both then Open3.capture3(bin, *command)
when :out then Open3.capture2(bin, *command) when :out then Open3.capture3(bin, *command).values_at(0, -1)
when :err then Open3.capture3(bin, *command).drop(1) when :err then Open3.capture3(bin, *command).drop(1)
when :none then Open3.capture2(bin, *command).last when :none then Open3.capture3(bin, *command).last
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment