From 570ce43d96193ad572a82b5eb385475b4037fd1b Mon Sep 17 00:00:00 2001 From: Robert Vock Date: Tue, 13 Dec 2011 22:56:54 +0100 Subject: [PATCH] remove less files, when cleaning up old sprites (fixes deleting to many generated sprites in some cases) --- lib/compass/sass_extensions/sprites/sprite_methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compass/sass_extensions/sprites/sprite_methods.rb b/lib/compass/sass_extensions/sprites/sprite_methods.rb index c620e95a..2fabcd06 100644 --- a/lib/compass/sass_extensions/sprites/sprite_methods.rb +++ b/lib/compass/sass_extensions/sprites/sprite_methods.rb @@ -72,7 +72,7 @@ module Compass end 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 end end