mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 11:21:12 +08:00
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…
x
Reference in New Issue
Block a user