lib/yamg/cli.rb in yamg-0.5.0 vs lib/yamg/cli.rb in yamg-0.5.1
- old
+ new
@@ -64,9 +64,10 @@
end
def compile_docs(opts)
out = opts['path']
%w( manifest.json browserconfig.xml ).each do |doc|
+ next if File.exist?(out)
puts Rainbow("{DOCS} #{out}/#{doc} created. Please review.").red
src = File.expand_path("assets/#{doc}", File.dirname(__FILE__))
FileUtils.cp(src, out)
end
end