diff --git a/personal_book.gemspec b/personal_book.gemspec index 20f61cd..4d02244 100644 --- a/personal_book.gemspec +++ b/personal_book.gemspec @@ -7,7 +7,7 @@ template_path = ENV['PWD'] + '/app/templates' all_template = Dir.glob(template_path+'/*/') puts 'copying module' all_template.each do |folder| - if folder[0...-1] != 'mobile' + if folder.split('/')[-1] != 'mobile' begin system ('cp -r '+ app_path + '/modules/ ' + folder) rescue