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'])