[fetchDependency] Use Test-Module for BitsTransfer module check

This commit is contained in:
Alexander Karatarakis 2017-10-17 13:42:58 -07:00
parent 7fac8a06c0
commit 451c1c96be

View File

@ -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
}