Navigation Menu

Skip to content

Commit

Permalink
Don't copy the images folder if it doesn't exist. Fixes #27
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Adams committed Nov 18, 2011
1 parent 419656b commit 2a62dc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/forge/builder.rb
Expand Up @@ -167,7 +167,7 @@ def build_assets
end end


# Copy the images directory over # Copy the images directory over
FileUtils.cp_r(File.join(@assets_path, 'images'), @project.build_path) FileUtils.cp_r(File.join(@assets_path, 'images'), @project.build_path) if File.exists?(File.join(@assets_path, 'images'))


# Check for screenshot and move it into main build directory # Check for screenshot and move it into main build directory
Dir.glob(File.join(@project.build_path, 'images', '*')).each do |filename| Dir.glob(File.join(@project.build_path, 'images', '*')).each do |filename|
Expand Down

0 comments on commit 2a62dc0

Please sign in to comment.