fix R and sphinx version output

This commit is contained in:
Dibir Magomedsaygitov
2020-09-24 23:39:14 +03:00
parent 3500bbdf3e
commit 85906da062

View File

@@ -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"
} }