mirror of
https://github.com/linux-sunxi/sunxi-tools.git
synced 2024-11-26 19:33:58 +08:00
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
|
||||
|
||||
def parse_stack_usage(filename)
|
||||
return unless File.exists?(filename)
|
||||
return unless File.exist?(filename)
|
||||
File.read(filename).strip.split("\n").map do |l|
|
||||
if l =~ /\:([^\:\s]+)\s+(\d+)\s+(\S+)/
|
||||
if $3 != "static"
|
||||
|
Loading…
Reference in New Issue
Block a user