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 first_output
if outputs.count != 0 if outputs.count != 0
outputs[-1] += first_output outputs[-1] += first_output
@remove_last_line = false # @remove_last_line = false
outputs[-1] = outputs[-1].sub(/(.+)\r(.+)/) do |s| # outputs[-1] = outputs[-1].sub(/(.+)\r(.+)/) do |s|
@remove_last_line = true # @remove_last_line = true
first_output = $2 # first_output = $2
end # end
else else
outputs << first_output outputs << first_output
end end