mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 02:33:02 +08:00
[vcpkg-integrate-powershell] Fix $false bug. Fixes #2397.
This commit is contained in:
parent
891e72af66
commit
7e1a737ba4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user