mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Fix gem update for default ruby
This commit is contained in:
@@ -71,8 +71,10 @@ Function Set-DefaultRubyVersion {
|
||||
Write-Host "Use Ruby ${Version} as a system Ruby"
|
||||
Add-MachinePathItem -PathItem $rubyDir.FullName
|
||||
|
||||
$env:Path = Get-MachinePath
|
||||
|
||||
# Update ruby gem to latest version
|
||||
gem update --system
|
||||
Invoke-Expression "gem update --system"
|
||||
}
|
||||
|
||||
Import-Module -Name ImageHelpers -Force
|
||||
|
||||
Reference in New Issue
Block a user