From 29d48c3c39d74200fb35b5750f99d06a4886bf2e Mon Sep 17 00:00:00 2001 From: Iscle Date: Sat, 12 Oct 2024 04:31:13 +0200 Subject: [PATCH] fel-remotefunc-compiler: Fix for newer ruby versions File.exists got removed from Ruby, File.exist should be used instead. --- fel-remotefunc-compiler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fel-remotefunc-compiler.rb b/fel-remotefunc-compiler.rb index 2afbbfdec..1a00081b9 100755 --- a/fel-remotefunc-compiler.rb +++ b/fel-remotefunc-compiler.rb @@ -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"