Permalink
Browse files

Use the right directory for cleanup when generated_images_dir is set.

Closes #931.
  • Loading branch information...
1 parent d5997d7 commit d2e44b8125f60ccdf42e7f00cb2df83b06644c6e @chriseppstein chriseppstein committed Jun 25, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/compass/sass_extensions/sprites/sprite_methods.rb
@@ -68,7 +68,7 @@ def generate
end
def cleanup_old_sprites
- Dir[File.join(Compass.configuration.images_path, "#{path}-s*.png")].each do |file|
+ Dir[File.join(Compass.configuration.generated_images_path, "#{path}-s*.png")].each do |file|
log :remove, file
FileUtils.rm file
Compass.configuration.run_sprite_removed(file)
@@ -138,4 +138,4 @@ def log(action, filename, *extra)
end
end
end
-end
+end

0 comments on commit d2e44b8

Please sign in to comment.