This commit is contained in:
邱博亞 2024-05-09 00:07:27 +08:00
parent 56a0797be3
commit e057744fcd
1 changed files with 5 additions and 5 deletions

View File

@ -269,11 +269,11 @@ namespace :exec_commands do
if first_output
if outputs.count != 0
outputs[-1] += first_output
@remove_last_line = false
outputs[-1] = outputs[-1].sub(/(.+)\r(.+)/) do |s|
@remove_last_line = true
first_output = $2
end
# @remove_last_line = false
# outputs[-1] = outputs[-1].sub(/(.+)\r(.+)/) do |s|
# @remove_last_line = true
# first_output = $2
# end
else
outputs << first_output
end