From 7b1cd89a048c7a6fc8d3a85714e1d52260b353df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Fri, 26 Jan 2024 08:27:30 +0800 Subject: [PATCH] Update install_sync_fgu.rb --- install_sync_fgu.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/.`