Unify stderr/stdout of faaso_run
This commit is contained in:
parent
6ff67e0190
commit
125870d0a8
@ -130,7 +130,8 @@ module Funko
|
|||||||
Log.info { "Running faaso [#{args.join(", ")}, -l]" }
|
Log.info { "Running faaso [#{args.join(", ")}, -l]" }
|
||||||
Process.run(
|
Process.run(
|
||||||
command: "faaso",
|
command: "faaso",
|
||||||
args: args + ["-l"], # Always local in the server
|
args: args + ["-l", "2>&1"], # Always local in the server
|
||||||
|
shell: true,
|
||||||
) do |process|
|
) do |process|
|
||||||
loop do
|
loop do
|
||||||
env.response.print process.output.gets(chomp: false)
|
env.response.print process.output.gets(chomp: false)
|
||||||
@ -138,7 +139,6 @@ module Funko
|
|||||||
Fiber.yield
|
Fiber.yield
|
||||||
break if process.terminated?
|
break if process.terminated?
|
||||||
end
|
end
|
||||||
p! process.error.peek
|
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
# FIXME: find a way to raise an exception on failure
|
# FIXME: find a way to raise an exception on failure
|
||||||
|
Loading…
Reference in New Issue
Block a user