aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2018-05-19 19:38:45 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2018-05-19 19:38:45 -0700
commit7932abed8d10b59f6a448c71349667dded004106 (patch)
treeeb257c4a29482e29db3361e096a3adc5bcc7b218 /scripts
parentb07568da4100d8be5d54feb1b1ccf65d0a5c0c3f (diff)
downloadvcpkg-7932abed8d10b59f6a448c71349667dded004106.tar.gz
vcpkg-7932abed8d10b59f6a448c71349667dded004106.zip
[ps1] Move variable close to where it is set
Diffstat (limited to 'scripts')
-rw-r--r--scripts/bootstrap.ps12
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/bootstrap.ps1 b/scripts/bootstrap.ps1
index c37ffd57f..149134dff 100644
--- a/scripts/bootstrap.ps1
+++ b/scripts/bootstrap.ps1
@@ -5,7 +5,6 @@ param(
)
Set-StrictMode -Version Latest
$scriptsDir = split-path -parent $script:MyInvocation.MyCommand.Definition
-$vcpkgRootDir = $scriptsDir
$withVSPath = $withVSPath -replace "\\$" # Remove potential trailing backslash
function vcpkgHasProperty([Parameter(Mandatory=$true)][AllowNull()]$object, [Parameter(Mandatory=$true)]$propertyName)
@@ -34,6 +33,7 @@ function getProgramFiles32bit()
return $out
}
+$vcpkgRootDir = $scriptsDir
while (!($vcpkgRootDir -eq "") -and !(Test-Path "$vcpkgRootDir\.vcpkg-root"))
{
Write-Verbose "Examining $vcpkgRootDir for .vcpkg-root"