From 5b3764a8885612a375b23608b8bf31761467a02f 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:26:43 +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 720706d..1f264ba 100644 --- a/install_sync_fgu.rb +++ b/install_sync_fgu.rb @@ -36,7 +36,7 @@ plugins = {"sync_fgu_personal_data" => "http://gitlab.tp.rulingcom.com/chiu/sync a = Dir.glob('../*/') a.each do |d| Dir.chdir(d) do - full_dir = Pathname.new(File.expand_path(Rails.root.to_s, d)) + full_dir = Pathname.new(File.realpath(File.join(Rails.root.to_s, d))) Rails.configuration.instance_variable_set(:@root, full_dir) plugins.each do |plugin, git_url| delete_plugin('built_in_extensions.rb', plugin)