Skip to content

Commit

Permalink
Fix second infinite range
Browse files Browse the repository at this point in the history
  • Loading branch information
David Heyer committed Feb 20, 2024
1 parent ebbed24 commit 4f12ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/taste_tester/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def generate_intermediate_tar(bucket, i, prefix)
name = File.join(file_entry[DESTINATION_PATH_INDEX], file_entry[RELATIVE_PATH_INDEX])

sep_index = file_entry[RELATIVE_PATH_INDEX].index(File::SEPARATOR)
minus_first = sep_index.nil? ? '' : file_entry[RELATIVE_PATH_INDEX][sep_index+1..]
minus_first = sep_index.nil? ? '' : file_entry[RELATIVE_PATH_INDEX][sep_index+1..-1]

chefignores = Chef::Cookbook::Chefignore.new(file_path)
next if chefignores.ignored?(file_entry[RELATIVE_PATH_INDEX]) ||
Expand Down

0 comments on commit 4f12ce2

Please sign in to comment.