mirror of
https://github.com/microsoft/vcpkg
synced 2024-11-20 16:06:00 -07:00
[bootstrap.ps1] Use older-powershell-friendly way to determine path
This commit is contained in:
parent
62accba790
commit
edb8b44b13
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,8 @@ param(
|
|||
[string]$disableMetrics = "0"
|
||||
)
|
||||
|
||||
$vcpkgRoot = (get-item $PSScriptRoot).parent.FullName
|
||||
$scriptsdir = split-path -parent $MyInvocation.MyCommand.Definition
|
||||
$vcpkgRoot = Split-path $scriptsdir -Parent
|
||||
|
||||
$gitHash = git rev-parse HEAD
|
||||
Write-Verbose("Git hash is " + $gitHash)
|
||||
|
|
Loading…
Reference in a new issue