Toolcache: remove InstallTool function from Download-ToolCache.ps1

This commit is contained in:
Maksim Petrov
2019-12-30 14:44:06 +03:00
parent 4c30ace0cc
commit 6aa21f425e

View File

@@ -20,19 +20,6 @@ Function Install-NpmPackage {
npm install $Name --registry=$NpmRegistry
}
Function InstallTool {
[CmdletBinding()]
param(
[System.IO.FileInfo]$ExecutablePath
)
Set-Location -Path $ExecutablePath.DirectoryName -PassThru | Write-Host
if (Test-Path 'tool.zip') {
Expand-Archive 'tool.zip' -DestinationPath '.'
}
cmd.exe /c 'install_to_tools_cache.bat'
}
# HostedToolCache Path
$Dest = "C:/"
$Path = "hostedtoolcache/windows"