[vcpkg] Fix setting exePath in fetchTool (#3114)

This commit is contained in:
Michał Janiszewski 2018-03-22 22:28:17 +01:00 committed by Robert Schumacher
parent 1f62b32641
commit 637c9bc0f0

View File

@ -25,7 +25,7 @@ function fetchToolInternal([Parameter(Mandatory=$true)][string]$tool)
throw "Unkown tool $tool"
}
$exePath = "$downloadsDir\$($toolData.exeRelativePath)"
$exePath = "$downloadsDir\$(@($toolData.exeRelativePath)[0])"
if (Test-Path $exePath)
{