[macOS] Fix version output for vcpkg (#2141)

* change version output for vcpkg

* minor fix

* change commit id to short

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

View File

@@ -51,7 +51,8 @@ function Get-RustupVersion {
function Get-VcpkgVersion {
$vcpkgVersion = Run-Command "vcpkg version" | Select-Object -First 1 | Take-Part -Part 5 | Take-Part -Part 0 -Delimiter "-"
return "Vcpkg ${vcpkgVersion}"
$commitId = git -C "/usr/local/share/vcpkg" rev-parse --short HEAD
return "Vcpkg $vcpkgVersion (build from master <$commitId>)"
}
function Get-GccVersion {