mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 02:19:00 +08:00
[bootstrap.ps1] Use older-powershell-friendly way to determine path
This commit is contained in:
parent
62accba790
commit
edb8b44b13
@ -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 New Issue
Block a user