mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 20:56:47 +00:00
[ubuntu] Adds detection of cpan version (#2488)
* Adds detection of cpan version The Perl package manager * Adds detected cpan version * Updates copypasta
This commit is contained in:
committed by
GitHub
parent
9f700144e1
commit
c63f698e70
@@ -91,6 +91,13 @@ function Get-HomebrewVersion {
|
||||
return "Homebrew $version"
|
||||
}
|
||||
|
||||
function Get-CpanVersion {
|
||||
$result = Get-CommandResult "cpan --version"
|
||||
$result.Output -match "version (?<version>\d+\.\d+) " | Out-Null
|
||||
$cpanVersion = $Matches.version
|
||||
return "cpan $cpanVersion"
|
||||
}
|
||||
|
||||
function Get-GemVersion {
|
||||
$result = Get-CommandResult "gem --version"
|
||||
$result.Output -match "(?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||
|
||||
@@ -53,6 +53,7 @@ $markdown += New-MDHeader "Package Management" -Level 3
|
||||
|
||||
$packageManagementList = @(
|
||||
(Get-HomebrewVersion),
|
||||
(Get-CpanVersion),
|
||||
(Get-GemVersion),
|
||||
(Get-MinicondaVersion),
|
||||
(Get-HelmVersion),
|
||||
|
||||
Reference in New Issue
Block a user