aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-09-19 13:59:32 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2016-09-19 13:59:32 -0700
commitedb8b44b1338a42422d0522b6639b7703a0bb875 (patch)
tree159e0c96e16223b9941e8c0251d91056fae9e9c8 /scripts
parent62accba7905534eb07f8ecd33085d7fbcd0b0b73 (diff)
downloadvcpkg-edb8b44b1338a42422d0522b6639b7703a0bb875.tar.gz
vcpkg-edb8b44b1338a42422d0522b6639b7703a0bb875.zip
[bootstrap.ps1] Use older-powershell-friendly way to determine path
Diffstat (limited to 'scripts')
-rw-r--r--scripts/bootstrap.ps13
1 files changed, 2 insertions, 1 deletions
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)