remove less files, when cleaning up old sprites (fixes deleting to many generated sprites in some cases)

This commit is contained in:
Robert Vock 2011-12-13 22:56:54 +01:00
parent 88c90f4397
commit 570ce43d96

View File

@ -72,7 +72,7 @@ module Compass
end end
def cleanup_old_sprites def cleanup_old_sprites
Dir[File.join(Compass.configuration.images_path, "#{path}-*.png")].each do |file| Dir[File.join(Compass.configuration.images_path, "#{path}-s*.png")].each do |file|
FileUtils.rm file FileUtils.rm file
end end
end end