Skip to content

Commit

Permalink
Use the right directory for cleanup when generated_images_dir is set.
Browse files Browse the repository at this point in the history
Closes #931.
  • Loading branch information
chriseppstein committed Jun 25, 2012
1 parent d5997d7 commit d2e44b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/compass/sass_extensions/sprites/sprite_methods.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def generate
end end


def cleanup_old_sprites 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 log :remove, file
FileUtils.rm file FileUtils.rm file
Compass.configuration.run_sprite_removed(file) Compass.configuration.run_sprite_removed(file)
Expand Down Expand Up @@ -138,4 +138,4 @@ def log(action, filename, *extra)
end end
end end
end end
end end

0 comments on commit d2e44b8

Please sign in to comment.