diff --git a/install_sync_fgu.rb b/install_sync_fgu.rb index 1f264ba..6815478 100644 --- a/install_sync_fgu.rb +++ b/install_sync_fgu.rb @@ -46,7 +46,7 @@ a.each do |d| templates = Dir.glob('app/templates/*/') plugins.each do |plugin, git_url| puts "copy modules: #{plugin}" - x = `bundle show #{plugin}`.strip + x = Bundler.with_clean_env {`bundle show #{plugin}`.strip} if x.present? templates.each do |template| `cp -rf #{x}/modules/* #{full_dir}/#{template}modules/.`