Use Push-Location/Pop-Location instead of pushd/popd

This commit is contained in:
Alexander Karatarakis 2017-11-09 21:42:36 -08:00
parent 192087563d
commit cd41cfe468

View File

@ -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
}