Fix bug.
This commit is contained in:
parent
6161a1a004
commit
98d0231d46
|
@ -219,6 +219,7 @@ namespace :exec_commands do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
new_arr = output_lines[1..-1]
|
new_arr = output_lines[1..-1]
|
||||||
|
new_arr = [] if new_arr.nil?
|
||||||
if data_str[-1] == "\n"
|
if data_str[-1] == "\n"
|
||||||
new_arr << ""
|
new_arr << ""
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue