Update ruby scripts to use 'File.exist?'

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
2025-03-02 11:32:55 -08:00
parent 06e8b8e022
commit b07ea85b70
3 changed files with 3 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ files = ARGV
code_paths = Dir.entries(root_path).select do |f|
File.directory?(File.join(root_path, f)) and f != '.' and f != '..'
end.to_set
code_paths += JSON.parse(File.read(data_file)).keys if File.exists? data_file
code_paths += JSON.parse(File.read(data_file)).keys if File.exist? data_file
# Extending code_paths from submodules.json means that nested Agda modules
# have their root dir correctly set.