[Ubuntu] Fix version output for vcpkg (#2140)

* change version output for vcpkg

* change commit id to short

* minor change
This commit is contained in:
Dibir Magomedsaygitov
2020-12-04 10:21:12 +03:00
committed by GitHub
parent cd45b96d7f
commit f415c1f30f

View File

@@ -133,7 +133,8 @@ function Get-VcpkgVersion {
$result = Get-CommandResult "vcpkg version"
$result.Output -match "version (?<version>\d+\.\d+\.\d+)" | Out-Null
$vcpkgVersion = $Matches.version
return "Vcpkg $vcpkgVersion"
$commitId = git -C "/usr/local/share/vcpkg" rev-parse --short HEAD
return "Vcpkg $vcpkgVersion (build from master <$commitId>)"
}
function Get-AntVersion {