aboutsummaryrefslogtreecommitdiff
path: root/scripts/fetchDependency.ps1
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-12-08 15:16:35 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2017-12-08 15:16:35 -0800
commit1f3013bea303736d216361a47e2f323577ab9c46 (patch)
tree2ddc080872d85df7540ae74f0c33912ef9274226 /scripts/fetchDependency.ps1
parent583ee9ee91a0d7abb5487580faf3ff1f302a642d (diff)
downloadvcpkg-1f3013bea303736d216361a47e2f323577ab9c46.tar.gz
vcpkg-1f3013bea303736d216361a47e2f323577ab9c46.zip
Improve vcpkgExtractFile. Also merge vcpkgRemoveDirectory/File
Diffstat (limited to 'scripts/fetchDependency.ps1')
-rw-r--r--scripts/fetchDependency.ps14
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/fetchDependency.ps1 b/scripts/fetchDependency.ps1
index 830ec7064..f62fe450c 100644
--- a/scripts/fetchDependency.ps1
+++ b/scripts/fetchDependency.ps1
@@ -88,8 +88,8 @@ function SelectProgram([Parameter(Mandatory=$true)][string]$Dependency)
{
if (-not (Test-Path $executableFromDownload))
{
- $extractFolderName = (Get-ChildItem $downloadPath).BaseName
- vcpkgExtractFile -File $downloadPath -DestinationDir "$downloadsDir\$extractFolderName"
+ $outFilename = (Get-ChildItem $downloadPath).BaseName
+ vcpkgExtractFile -File $downloadPath -DestinationDir $downloadsDir -outFilename $outFilename
}
}
elseif($extractionType -eq $ExtractionType_SELF_EXTRACTING_7Z)