mirror of
https://github.com/actions/runner-images.git
synced 2025-12-28 04:38:53 +08:00
[Windows] Remove hub utility (#8365)
This commit is contained in:
committed by
GitHub
parent
f05152105f
commit
9f764f7429
@@ -118,7 +118,6 @@ if (Test-IsWin19) {
|
||||
$cliTools.AddToolVersion("Cloud Foundry CLI", $(Get-CloudFoundryVersion))
|
||||
}
|
||||
$cliTools.AddToolVersion("GitHub CLI", $(Get-GHVersion))
|
||||
$cliTools.AddToolVersion("Hub CLI", $(Get-HubVersion))
|
||||
|
||||
# Rust Tools
|
||||
Initialize-RustEnvironment
|
||||
|
||||
@@ -232,12 +232,6 @@ function Get-CloudFoundryVersion {
|
||||
return $cfVersion
|
||||
}
|
||||
|
||||
function Get-HubVersion {
|
||||
($(hub version) | Select-String -Pattern "hub version") -match "hub version (?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||
$hubVersion = $Matches.Version
|
||||
return $hubVersion
|
||||
}
|
||||
|
||||
function Get-7zipVersion {
|
||||
(7z | Out-String) -match "7-Zip (?<version>\d+\.\d+\.?\d*)" | Out-Null
|
||||
$version = $Matches.Version
|
||||
|
||||
Reference in New Issue
Block a user