mirror of https://github.com/microsoft/vcpkg.git
Use Push-Location/Pop-Location instead of pushd/popd
This commit is contained in:
parent
192087563d
commit
cd41cfe468
|
|
@ -38,7 +38,7 @@ if (!(Test-Path $vcpkgSourcesPath))
|
|||
|
||||
try
|
||||
{
|
||||
pushd $vcpkgSourcesPath
|
||||
Push-Location $vcpkgSourcesPath
|
||||
$msbuildExeWithPlatformToolset = & $scriptsDir\findAnyMSBuildWithCppPlatformToolset.ps1 $withVSPath
|
||||
$msbuildExe = $msbuildExeWithPlatformToolset[0]
|
||||
$platformToolset = $msbuildExeWithPlatformToolset[1]
|
||||
|
|
@ -57,5 +57,5 @@ try
|
|||
}
|
||||
finally
|
||||
{
|
||||
popd
|
||||
Pop-Location
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue