Skip to content

Commit

Permalink
Filter compressed archives
Browse files Browse the repository at this point in the history
  • Loading branch information
BGMP committed Feb 19, 2022
1 parent 71ab4dc commit a1dd577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ task :clean do
end

# Remove unnecessary files
delete_ext = %w[.psd .pdn .xcf]
delete_ext = %w[.psd .pdn .xcf .zip .rar .tar .7z]
delete_file = %w[preview.jpg preview.png carbox256.bmp carbox512.bmp]
Dir[File.join('cars', '**', '*')].reject { |p| File.directory? p }.each do |f|
next unless delete_ext.include?(File.extname(f)) || delete_file.any? { |df| f.include? df }
Expand Down

0 comments on commit a1dd577

Please sign in to comment.