From 0220cf6045d94e34c3d050a62bf98a43525fb125 Mon Sep 17 00:00:00 2001 From: MahtraDR <93822896+MahtraDR@users.noreply.github.com> Date: Sun, 4 Aug 2024 19:49:54 +1200 Subject: [PATCH] exists > exist --- dependency.lic | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dependency.lic b/dependency.lic index 55a2adce87..f1aad9429f 100644 --- a/dependency.lic +++ b/dependency.lic @@ -440,7 +440,7 @@ class ScriptManager # Select only base.yaml and base-empty.yaml .select { |data| /^base(?:-empty)?\.yaml/ =~ data['path'] } # Reject files that exist, and have the same shasum as those on the repo. - .reject { |setup_file| File.exists?("profiles/#{setup_file['path']}") && setup_file['sha'] == Settings['base_versions'][setup_file['path']] } + .reject { |setup_file| File.exist?("profiles/#{setup_file['path']}") && setup_file['sha'] == Settings['base_versions'][setup_file['path']] } .each do |setup_file| echo("downloading #{setup_file}") if @debug blob = make_request(setup_file['url']) @@ -455,7 +455,7 @@ class ScriptManager make_request(profile_tree_url)['tree'] .select { |data| /^base.+yaml/ =~ data['path'] } # Reject files that exist, and have the same shasum as those on the repo. - .reject { |setup_file| File.exists?("data/#{setup_file['path']}") && setup_file['sha'] == Settings['base_versions'][setup_file['path']] } + .reject { |setup_file| File.exist?("data/#{setup_file['path']}") && setup_file['sha'] == Settings['base_versions'][setup_file['path']] } .each do |setup_file| echo("downloading #{setup_file}") if @debug blob = make_request(setup_file['url'])