lib/jets/builders/ruby_packager.rb in jets-1.0.13 vs lib/jets/builders/ruby_packager.rb in jets-1.0.15
- old
+ new
@@ -184,10 +184,12 @@
if File.exist?(app_root_bundled)
puts "Removing current bundled from project"
FileUtils.rm_rf(app_root_bundled)
end
# Leave #{Jets.build_root}/bundled behind to act as cache
- FileUtils.cp_r("#{cache_area}/bundled", app_root_bundled)
+ if File.exist?("#{cache_area}/bundled")
+ FileUtils.cp_r("#{cache_area}/bundled", app_root_bundled)
+ end
end
private
def cache_area
"#{Jets.build_root}/cache" # cleaner to use full path for this setting