From 2ab92503cf310be516ee45e40a2192730a4e04aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Wed, 28 Aug 2024 16:18:27 +0200 Subject: [PATCH] compile-scheme: Remove remaining use of File.exists? Otherwise we fail to run on recent ruby. --- compile-scheme.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compile-scheme.rb b/compile-scheme.rb index bf2127e..e3aa4b7 100755 --- a/compile-scheme.rb +++ b/compile-scheme.rb @@ -657,7 +657,7 @@ def compile_scheme(scheme_path, output_path) $vst_name = file_name + ".vst" $vst_path = output_path || File.join(Dir.pwd, $vst_name) - if File.exists?($vst_path) + if File.exist?($vst_path) File.delete($vst_path) end @@ -734,7 +734,7 @@ def compile_scheme(scheme_path, output_path) optparse.parse! -if File.exists? ($options[:scheme]) +if File.exist? ($options[:scheme]) compile_scheme($options[:scheme], $options[:output]) else puts "File doesn't exist"