[bootstrap] Set-StrictMode to latest

This commit is contained in:
Alexander Karatarakis 2018-02-28 18:44:57 -08:00
parent 90cf4371c3
commit 2d2ff28c77

View File

@ -3,13 +3,12 @@ param(
[ValidateNotNullOrEmpty()][string]$disableMetrics = "0",
[Parameter(Mandatory=$False)][string]$withVSPath = ""
)
Set-StrictMode -Version Latest
$scriptsDir = split-path -parent $script:MyInvocation.MyCommand.Definition
. "$scriptsDir\VcpkgPowershellUtils.ps1"
$vcpkgRootDir = vcpkgFindFileRecursivelyUp $scriptsDir .vcpkg-root
Write-Verbose("vcpkg Path " + $vcpkgRootDir)
$gitHash = "unknownhash"
$oldpath = $env:path
try