[vcpkg-integrate-powershell] Fix $false bug. Fixes #2397.

This commit is contained in:
Robert Schumacher 2017-12-19 16:11:20 -08:00
parent 891e72af66
commit 7e1a737ba4

View File

@ -5,11 +5,12 @@ function findExistingImportModuleDirectives([Parameter(Mandatory=$true)][string]
{
if (!(Test-Path $path))
{
return $false
return
}
$fileContents = Get-Content $path
return $fileContents -match 'Import-Module.+?(?=posh-vcpkg)'
$fileContents -match 'Import-Module.+?(?=posh-vcpkg)'
return
}
$scriptsDir = split-path -parent $MyInvocation.MyCommand.Definition