[ps1] Revert function removal

This commit is contained in:
Alexander Karatarakis 2018-03-27 18:06:02 -07:00
parent c814c9b8ac
commit 12d862ab2b

View File

@ -13,6 +13,8 @@ $vcpkgRootDir = vcpkgFindFileRecursivelyUp $scriptsDir .vcpkg-root
$downloadsDir = "$vcpkgRootDir\downloads"
vcpkgCreateDirectoryIfNotExists $downloadsDir
function fetchToolInternal([Parameter(Mandatory=$true)][string]$tool)
{
$tool = $tool.toLower()
[xml]$asXml = Get-Content "$scriptsDir\vcpkgTools.xml"
@ -66,4 +68,9 @@ if (-not (Test-Path $exePath))
throw
}
return "<sol>::$exePath::<eol>"
return $exePath
}
$path = fetchToolInternal $tool
Write-Verbose "Fetching tool: $tool. Done."
return "<sol>::$path::<eol>"