From a1f1943367ca962fab89e955d267477a80bbaea6 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sun, 12 Sep 2010 14:13:25 -0700 Subject: [PATCH] Only do this once, otherwise the output changes every time. --- lib/lemonade/sass_functions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lemonade/sass_functions.rb b/lib/lemonade/sass_functions.rb index a871382c..e41b6325 100644 --- a/lib/lemonade/sass_functions.rb +++ b/lib/lemonade/sass_functions.rb @@ -57,7 +57,7 @@ private 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 - 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] end