[bootstrap.ps1] Use older-powershell-friendly way to determine path

This commit is contained in:
Alexander Karatarakis 2016-09-19 13:59:32 -07:00
parent 62accba790
commit edb8b44b13

View file

@ -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)