Skip to content

Commit

Permalink
Fixing paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
MahtraDR committed Dec 12, 2024
1 parent 44414fa commit fe0eca0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dependency.lic
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,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.exist?("profiles/#{setup_file['path']}") && setup_file['sha'] == Settings['base_versions'][setup_file['path']] }
.reject { |setup_file| File.exist?("#{SCRIPT_DIR}/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'])
Expand All @@ -451,8 +451,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.exist?("data/#{setup_file['path']}") }
.reject { |setup_file| setup_file['sha'] == Settings['base_versions'][setup_file['path']] }
.reject { |setup_file| echo(File.exist?("#{SCRIPT_DIR}/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'])
Expand Down

0 comments on commit fe0eca0

Please sign in to comment.