aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-10-17 13:42:58 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-10-17 13:42:58 -0700
commit451c1c96be2407da0e590344c655a8df838d3f99 (patch)
tree9a9dbb8fc189f0c9a905cc43fc3e163c123f2125 /scripts
parent7fac8a06c091c7d6a0a9dd059166d4320cd86267 (diff)
downloadvcpkg-451c1c96be2407da0e590344c655a8df838d3f99.tar.gz
vcpkg-451c1c96be2407da0e590344c655a8df838d3f99.zip
[fetchDependency] Use Test-Module for BitsTransfer module check
Diffstat (limited to 'scripts')
-rw-r--r--scripts/fetchDependency.ps13
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/fetchDependency.ps1 b/scripts/fetchDependency.ps1
index 2ba98ab23..58f64b626 100644
--- a/scripts/fetchDependency.ps1
+++ b/scripts/fetchDependency.ps1
@@ -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
}