aboutsummaryrefslogtreecommitdiff
path: root/scripts/fetchTool.ps1
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2018-03-27 04:08:57 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2018-03-27 04:08:57 -0700
commit72194ae8a0e435aee63b8e40f585646247672e3b (patch)
treed06a585151e1d6d49305de09205e2c01c221df6d /scripts/fetchTool.ps1
parent72758773321476dcbb7b9d18f11bf57134bb4545 (diff)
downloadvcpkg-72194ae8a0e435aee63b8e40f585646247672e3b.tar.gz
vcpkg-72194ae8a0e435aee63b8e40f585646247672e3b.zip
[ps1] More fixes/tweaks
Diffstat (limited to 'scripts/fetchTool.ps1')
-rw-r--r--scripts/fetchTool.ps17
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/fetchTool.ps1 b/scripts/fetchTool.ps1
index a52986553..af6d4d1d9 100644
--- a/scripts/fetchTool.ps1
+++ b/scripts/fetchTool.ps1
@@ -58,13 +58,14 @@ function fetchToolInternal([Parameter(Mandatory=$true)][string]$tool)
{
$outFilename = (Get-ChildItem $downloadPath).BaseName
Write-Host "Extracting $tool..."
- vcpkgExtractFile -File $downloadPath -DestinationDir $downloadsDir -outFilename $outFilename
- Write-Host "Extracting $tool has completed successfully."
+ vcpkgExtractFile -ArchivePath $downloadPath -DestinationDir $downloadsDir -outFilename $outFilename
+ Write-Host "Extracting $tool... done."
}
if (-not (Test-Path $exePath))
{
- throw ("Could not detect or download " + $tool)
+ Write-Error "Could not detect or download $tool"
+ throw
}
return $exePath