Skip to content

Commit

Permalink
compile-scheme: Remove remaining use of File.exists? (#20)
Browse files Browse the repository at this point in the history
Otherwise we fail to run on recent ruby.
  • Loading branch information
agx authored Aug 29, 2024
1 parent 09527c4 commit fcf0590
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compile-scheme.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit fcf0590

Please sign in to comment.