Only do this once, otherwise the output changes every time.

This commit is contained in:
Chris Eppstein 2010-09-12 14:13:25 -07:00
parent dd2c9eb72d
commit a1f1943367

View File

@ -57,7 +57,7 @@ private
sprite_item = image_for(sprite, filestr, position_x, position_y_shift, margin_top_or_both, margin_bottom) sprite_item = image_for(sprite, filestr, position_x, position_y_shift, margin_top_or_both, margin_bottom)
# Create a temporary destination file so compass doesn't complain about a missing image # Create a temporary destination file so compass doesn't complain about a missing image
FileUtils.touch File.join(Lemonade.images_path, sprite_file) FileUtils.touch File.join(Lemonade.images_path, sprite_file) unless File.exists?(File.join(Lemonade.images_path, sprite_file))
[sprite, sprite_item] [sprite, sprite_item]
end end