diff --git a/lib/compass/sass_extensions/sprites/sprite_methods.rb b/lib/compass/sass_extensions/sprites/sprite_methods.rb index a5ce3c12..fa7882f0 100644 --- a/lib/compass/sass_extensions/sprites/sprite_methods.rb +++ b/lib/compass/sass_extensions/sprites/sprite_methods.rb @@ -68,7 +68,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| log :remove, file FileUtils.rm file Compass.configuration.run_sprite_removed(file)