From 8e16174ce7d43f063450d2955ad4b4cc3688306d Mon Sep 17 00:00:00 2001 From: Yaroslav Markin Date: Thu, 6 Jun 2024 14:37:06 +0300 Subject: [PATCH] fix(RubyGems): support no-sudo updating for rbenv and rvm (#820) --- src/steps/generic.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/steps/generic.rs b/src/steps/generic.rs index 731db822..091da952 100644 --- a/src/steps/generic.rs +++ b/src/steps/generic.rs @@ -120,7 +120,10 @@ pub fn run_rubygems(ctx: &ExecutionContext) -> Result<()> { print_separator("RubyGems"); let gem_path_str = gem.as_os_str(); - if gem_path_str.to_str().unwrap().contains("asdf") { + if gem_path_str.to_str().unwrap().contains("asdf") + || gem_path_str.to_str().unwrap().contains(".rbenv") + || gem_path_str.to_str().unwrap().contains(".rvm") + { ctx.run_type() .execute(gem) .args(["update", "--system"])