diff --git a/scripts/bootstrap.ps1 b/scripts/bootstrap.ps1 index f349dbecda..ca7b1a0ce0 100644 --- a/scripts/bootstrap.ps1 +++ b/scripts/bootstrap.ps1 @@ -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 }