Fixes rubygems on .deb distros (#268)

Fixes rubygem on systems with the .deb ruby package
This commit is contained in:
Thomas Schönauer
2022-12-15 20:27:27 +00:00
committed by GitHub
parent 9553be04e4
commit 78a491a976

View File

@@ -89,7 +89,11 @@ pub fn run_rubygems(base_dirs: &BaseDirs, run_type: RunType) -> Result<()> {
print_separator("RubyGems"); print_separator("RubyGems");
run_type.execute(gem).args(["update", "--system"]).status_checked() if !std::path::Path::new("/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb").exists() {
run_type.execute(gem).args(["update", "--system"]).status_checked()
} else {
Ok(())
}
} }
pub fn run_haxelib_update(ctx: &ExecutionContext) -> Result<()> { pub fn run_haxelib_update(ctx: &ExecutionContext) -> Result<()> {