mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 21:29:02 +08:00
[fetchDependency] Use Test-Module for BitsTransfer module check
This commit is contained in:
parent
7fac8a06c0
commit
451c1c96be
@ -13,7 +13,8 @@ function Test-Module($moduleName)
|
||||
return [bool](Get-Module -ListAvailable -Name $moduleName)
|
||||
}
|
||||
|
||||
if ($PSVersionTable.PSEdition -ne "Core") {
|
||||
if (Test-Module -moduleName 'BitsTransfer')
|
||||
{
|
||||
Import-Module BitsTransfer -Verbose:$false
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user