mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-14 13: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
|
||||
|
||||
Reference in New Issue
Block a user