Fix bug.
This commit is contained in:
parent
1d7149180c
commit
4b12eff642
|
@ -158,7 +158,11 @@ namespace :exec_commands do
|
||||||
end
|
end
|
||||||
def update_infos_for_exec(info,update_last=false,update_array=false)
|
def update_infos_for_exec(info,update_last=false,update_array=false)
|
||||||
return if @site_construct.nil?
|
return if @site_construct.nil?
|
||||||
|
if(update_array)
|
||||||
|
info.map!{|i| i.encode!("UTF-8", :invalid => :replace, :undef => :replace, :replace => '')}
|
||||||
|
else
|
||||||
info.encode!("UTF-8", :invalid => :replace, :undef => :replace, :replace => '')
|
info.encode!("UTF-8", :invalid => :replace, :undef => :replace, :replace => '')
|
||||||
|
end
|
||||||
if update_last && !@site_construct.infos.empty?
|
if update_last && !@site_construct.infos.empty?
|
||||||
@site_construct.infos[-1] += info.to_s
|
@site_construct.infos[-1] += info.to_s
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue