From 9be58cc7f3ea1032c25e09ced371054706be3f47 Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 21 Aug 2019 14:19:11 +0800 Subject: [PATCH] Update personal_journal.gemspec --- personal_journal.gemspec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/personal_journal.gemspec b/personal_journal.gemspec index 76821bd..dd1f5cd 100644 --- a/personal_journal.gemspec +++ b/personal_journal.gemspec @@ -7,8 +7,11 @@ app_path = File.expand_path(__dir__ + '/..') template_path = ENV['PWD'] + '/app/templates' all_template = Dir.glob(template_path+'/*/') all_template.each do |folder| - begin system ('cp -f '+ app_path + '/personal-journal/modules' + folder + '/modules') - rescue puts 'error copy' + begin + system ('cp -f '+ app_path + '/personal-journal/modules' + folder + '/modules') + rescue + puts 'error copy' + end end #puts RAILS_ROOT #system 'ruby get_rail_path.rb'