Fix issue with RubyGems update command (#248)

This commit is contained in:
Armel Soro
2022-12-05 14:16:03 +01:00
committed by GitHub
parent 46a010cc8f
commit dc82b8b766

View File

@@ -90,7 +90,7 @@ pub fn run_rubygems(base_dirs: &BaseDirs, run_type: RunType) -> Result<()> {
print_separator("RubyGems");
let mut command = run_type.execute(gem);
command.arg("update --system");
command.args(["update", "--system"]);
if env::var_os("RBENV_SHELL").is_none() {
debug!("Detected rbenv. Avoiding --user-install");