Fix bug.
This commit is contained in:
parent
7a275f7ed6
commit
137b7781b6
|
|
@ -269,7 +269,7 @@ namespace :exec_commands do
|
||||||
else
|
else
|
||||||
@remove_last_line = (outputs.count > 0 && data_str[0...rm_idx].exclude?("\n"))
|
@remove_last_line = (outputs.count > 0 && data_str[0...rm_idx].exclude?("\n"))
|
||||||
end
|
end
|
||||||
data_str.gsub!(/.*\r/, '')
|
data_str.gsub!(/.*\r(?!\n)/, '')
|
||||||
next if data_str.length == 0
|
next if data_str.length == 0
|
||||||
if data_str.include?("\n") || outputs.empty?
|
if data_str.include?("\n") || outputs.empty?
|
||||||
output_lines = data_str.split("\n")
|
output_lines = data_str.split("\n")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue