aboutsummaryrefslogtreecommitdiff
path: root/scripts/fetchDependency.ps1
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-11-27 00:42:21 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2017-11-27 00:42:39 -0800
commit2c914ff05af3b2209eb11b6ba61b43eb46033cb3 (patch)
tree7d923d4176f1e8399fb04abb6ede9cae2ac4ba6b /scripts/fetchDependency.ps1
parentc4c079f86eac8215040173d6707900d8983ea7fc (diff)
downloadvcpkg-2c914ff05af3b2209eb11b6ba61b43eb46033cb3.tar.gz
vcpkg-2c914ff05af3b2209eb11b6ba61b43eb46033cb3.zip
Rework vcpkgExtractFile (powershell)
Diffstat (limited to 'scripts/fetchDependency.ps1')
-rw-r--r--scripts/fetchDependency.ps13
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/fetchDependency.ps1 b/scripts/fetchDependency.ps1
index 744439bb7..830ec7064 100644
--- a/scripts/fetchDependency.ps1
+++ b/scripts/fetchDependency.ps1
@@ -88,7 +88,8 @@ function SelectProgram([Parameter(Mandatory=$true)][string]$Dependency)
{
if (-not (Test-Path $executableFromDownload))
{
- vcpkgExtractFile -File $downloadPath -DestinationDir $downloadsDir
+ $extractFolderName = (Get-ChildItem $downloadPath).BaseName
+ vcpkgExtractFile -File $downloadPath -DestinationDir "$downloadsDir\$extractFolderName"
}
}
elseif($extractionType -eq $ExtractionType_SELF_EXTRACTING_7Z)