[Windows] win: add validation InstalledSoftware.md and testResults.xml files (#3960)

* win: add validation InstalledSoftware.md file
This commit is contained in:
Aleksandr Chebotov
2021-08-27 09:38:18 +03:00
committed by GitHub
parent ca51829236
commit 5aa96839a8
9 changed files with 50 additions and 11 deletions
@@ -13,8 +13,8 @@ function Get-ApacheVersion {
}
function Get-NginxVersion {
$nginxBinPath = Join-Path (Get-NginxPath) "\nginx"
(. $nginxBinPath -v 2>&1 | Select-String -Pattern "nginx/") -match "nginx/(?<version>\d+\.\d+\.\d+)" | Out-Null
$nginxBinPath = Join-Path (Get-NginxPath) "nginx"
(cmd /c "$nginxBinPath -v 2>&1") -match "nginx/(?<version>\d+\.\d+\.\d+)" | Out-Null
return $Matches.Version
}