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:
Iscle 2024-10-12 04:31:13 +02:00 committed by Andre Przywara
parent df60a46e38
commit 29d48c3c39

View File

@ -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"