diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-12-08 15:16:35 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-12-08 15:16:35 -0800 |
| commit | 1f3013bea303736d216361a47e2f323577ab9c46 (patch) | |
| tree | 2ddc080872d85df7540ae74f0c33912ef9274226 /scripts/fetchDependency.ps1 | |
| parent | 583ee9ee91a0d7abb5487580faf3ff1f302a642d (diff) | |
| download | vcpkg-1f3013bea303736d216361a47e2f323577ab9c46.tar.gz vcpkg-1f3013bea303736d216361a47e2f323577ab9c46.zip | |
Improve vcpkgExtractFile. Also merge vcpkgRemoveDirectory/File
Diffstat (limited to 'scripts/fetchDependency.ps1')
| -rw-r--r-- | scripts/fetchDependency.ps1 | 4 |
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) |
