lib/origen/commands/new.rb in origen-0.23.0 vs lib/origen/commands/new.rb in origen-0.24.0
- old
+ new
@@ -65,10 +65,10 @@
generators = [['http://rubygems.org', 'origen_app_generators']] + Array(Origen.site_config.app_generators)
if update_required
puts 'Fetching the latest app generators...'
FileUtils.rm_rf(generators_dir) if File.exist?(generators_dir)
- FileUtils.mkdir(generators_dir)
+ FileUtils.mkdir_p(generators_dir)
Dir.chdir generators_dir do
generators.each_with_index do |gen, i|
# If a reference to a gem from a gem server
if gen.is_a?(Array)