[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", [ValidateNotNullOrEmpty()][string]$disableMetrics = "0",
[Parameter(Mandatory=$False)][string]$withVSPath = "" [Parameter(Mandatory=$False)][string]$withVSPath = ""
) )
Set-StrictMode -Version Latest
$scriptsDir = split-path -parent $script:MyInvocation.MyCommand.Definition $scriptsDir = split-path -parent $script:MyInvocation.MyCommand.Definition
. "$scriptsDir\VcpkgPowershellUtils.ps1" . "$scriptsDir\VcpkgPowershellUtils.ps1"
$vcpkgRootDir = vcpkgFindFileRecursivelyUp $scriptsDir .vcpkg-root $vcpkgRootDir = vcpkgFindFileRecursivelyUp $scriptsDir .vcpkg-root
Write-Verbose("vcpkg Path " + $vcpkgRootDir) Write-Verbose("vcpkg Path " + $vcpkgRootDir)
$gitHash = "unknownhash" $gitHash = "unknownhash"
$oldpath = $env:path $oldpath = $env:path
try try