fel-remotefunc-compiler: Fix for newer ruby versions
File.exists got removed from Ruby, File.exist should be used instead.
This commit is contained in:
parent
df60a46e38
commit
29d48c3c39
@ -48,7 +48,7 @@ def tool_exists(tool_name)
|
|||||||
end
|
end
|
||||||
|
|
||||||
def parse_stack_usage(filename)
|
def parse_stack_usage(filename)
|
||||||
return unless File.exists?(filename)
|
return unless File.exist?(filename)
|
||||||
File.read(filename).strip.split("\n").map do |l|
|
File.read(filename).strip.split("\n").map do |l|
|
||||||
if l =~ /\:([^\:\s]+)\s+(\d+)\s+(\S+)/
|
if l =~ /\:([^\:\s]+)\s+(\d+)\s+(\S+)/
|
||||||
if $3 != "static"
|
if $3 != "static"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user