mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 01:22:44 +08:00
Override problematic .gemrc setting
This commit is contained in:
parent
0db3e27ce4
commit
f367eebb10
|
@ -6,7 +6,7 @@ module PluginGem
|
|||
spec_path = gems_path + "/specifications"
|
||||
spec_file = spec_path + "/#{name}-#{version}.gemspec"
|
||||
unless File.exists? spec_file
|
||||
command = "gem install #{name} -v #{version} -i #{gems_path} --no-document --ignore-dependencies"
|
||||
command = "gem install #{name} -v #{version} -i #{gems_path} --no-document --ignore-dependencies --no-user-install"
|
||||
if opts[:source]
|
||||
command << " --source #{opts[:source]}"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user