Fix bug.
This commit is contained in:
parent
9cb62dea77
commit
b27409fa3f
|
@ -197,11 +197,13 @@ namespace :exec_commands do
|
||||||
if data.include?("\n") || outputs.empty?
|
if data.include?("\n") || outputs.empty?
|
||||||
output_lines = data_str.split("\n")
|
output_lines = data_str.split("\n")
|
||||||
first_output = output_lines[0]
|
first_output = output_lines[0]
|
||||||
|
if first_output
|
||||||
if outputs.count != 0
|
if outputs.count != 0
|
||||||
outputs[-1] += first_output
|
outputs[-1] += first_output
|
||||||
else
|
else
|
||||||
outputs << first_output
|
outputs << first_output
|
||||||
end
|
end
|
||||||
|
end
|
||||||
new_arr = output_lines[1..-1]
|
new_arr = output_lines[1..-1]
|
||||||
if data_str[-1] == "\n"
|
if data_str[-1] == "\n"
|
||||||
new_arr << ""
|
new_arr << ""
|
||||||
|
|
Loading…
Reference in New Issue