mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
[ps1] Revert function removal
This commit is contained in:
parent
c814c9b8ac
commit
12d862ab2b
@ -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>"
|
||||
|
Loading…
x
Reference in New Issue
Block a user