Browse files

copy css images in css task only if images folder exists

  • Loading branch information...
1 parent 7666511 commit 1f7882c95d71f39771e4710320ef959833a11972 @alextk committed Dec 13, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/js_project_builder_tasks.rb
View
6 lib/js_project_builder_tasks.rb
@@ -84,8 +84,10 @@ def define
ok or fail "Error running sass on #{project_builder.sass_dir}. \n #{output}"
end
- puts "Copying css images..."
- cp_r "#{project_builder.sass_dir}/images", "#{project_builder.dist_dir}/css"
+ if File.exists?("#{project_builder.sass_dir}/images")
+ puts "Copying css images..."
+ cp_r "#{project_builder.sass_dir}/images", "#{project_builder.dist_dir}/css"
+ end
end
namespace :version do

0 comments on commit 1f7882c

Please sign in to comment.