diff --git a/config/initializers/plugin_symlinks.rb b/config/initializers/plugin_symlinks.rb index 34f5322d0a3..1d37d0a2d4d 100644 --- a/config/initializers/plugin_symlinks.rb +++ b/config/initializers/plugin_symlinks.rb @@ -1,7 +1,7 @@ def maintain_plugin_symlinks(local_path, plugin_path=nil) plugin_path ||= local_path Dir.glob("vendor/plugins/*/#{plugin_path}").each do |plugin_dir| - Dir.mkdir("#{local_path}/plugins") unless File.exists?("#{local_path}/plugins") + FileUtils.makedirs("#{local_path}/plugins") unless File.exists?("#{local_path}/plugins") plugin = plugin_dir.gsub(%r{^vendor/plugins/(.*)/#{plugin_path}$}, '\1') source = "#{local_path}/plugins/#{plugin}" target = "#{local_path.gsub(%r{[^/]+}, '..')}/../#{plugin_dir}"