mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 05:07:02 +00:00
fix R and sphinx version output
This commit is contained in:
@@ -254,11 +254,11 @@ function Get-PulumiVersion {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function Get-RVersion {
|
function Get-RVersion {
|
||||||
$rVersion = R --version | Select-String "R version" | Take-OutputPart -Part -2
|
$rVersion = (Get-CommandResult "R --version | grep 'R version'").Output | Take-OutputPart -Part 2
|
||||||
return "R $rVersion"
|
return "R $rVersion"
|
||||||
}
|
}
|
||||||
|
|
||||||
function Get-SphinxVersion {
|
function Get-SphinxVersion {
|
||||||
$sphinxVersion = searchd | Take-OutputPart -Part 1 | Take-OutputPart -Part 0 -Delimiter "-"
|
$sphinxVersion = searchd -h | Select-Object -First 1 | Take-OutputPart -Part 1 | Take-OutputPart -Part 0 -Delimiter "-"
|
||||||
return "Sphinx Open Source Search Server $rVersion"
|
return "Sphinx Open Source Search Server $sphinxVersion"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user