Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't copy the images folder if it doesn't exist. Fixes #27

  • Loading branch information...
commit 2a62dc045a0653e97ae691666a92f6052067102e 1 parent 419656b
Andy Adams authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/forge/builder.rb
2  lib/forge/builder.rb
View
@@ -167,7 +167,7 @@ def build_assets
end
# 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
Dir.glob(File.join(@project.build_path, 'images', '*')).each do |filename|
Please sign in to comment.
Something went wrong with that request. Please try again.