From edb8b44b1338a42422d0522b6639b7703a0bb875 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Mon, 19 Sep 2016 13:59:32 -0700 Subject: [bootstrap.ps1] Use older-powershell-friendly way to determine path --- scripts/bootstrap.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/bootstrap.ps1 b/scripts/bootstrap.ps1 index 568f56995..d336dc9d5 100644 --- a/scripts/bootstrap.ps1 +++ b/scripts/bootstrap.ps1 @@ -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) -- cgit v1.2.3