mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[ps1] Move variable close to where it is set
This commit is contained in:
parent
b07568da41
commit
7932abed8d
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user