From 28dcfa1a0ee50ede47da0ff75881591300102ebc Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Wed, 6 May 2020 18:23:57 +0300 Subject: [PATCH] Update win-setup-template.ps1 --- installers/win-setup-template.ps1 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/installers/win-setup-template.ps1 b/installers/win-setup-template.ps1 index 7bd3034..c0b21ff 100644 --- a/installers/win-setup-template.ps1 +++ b/installers/win-setup-template.ps1 @@ -2,8 +2,6 @@ $ErrorActionPreference = "Stop" [Version]$Version = "{{__VERSION__}}" [string]$Architecture = "{{__ARCHITECTURE__}}" -$ArchiveFileName = "tool.7z" -$TempDirectory = Join-Path $env:TEMP "Node" $ToolcacheRoot = $env:AGENT_TOOLSDIRECTORY if ([string]::IsNullOrEmpty($ToolcacheRoot)) { @@ -30,7 +28,7 @@ if (-not (Test-Path $NodeToolcacheArchitecturePath)) { } Write-Host "Copy Node.js binaries to hostedtoolcache folder" -Copy-Item -Path * -Destination $NodeToolcacheArchitecturePath +Copy-Item -Path * -Destination $NodeToolcacheArchitecturePath -Recurse Remove-Item $NodeToolcacheArchitecturePath\setup.ps1 -Force | Out-Null Write-Host "Create complete file"