Skip to content

Commit

Permalink
Update win-setup-template.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Shibanov committed May 6, 2020
1 parent 6a64b2c commit 28dcfa1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions installers/win-setup-template.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -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"
Expand Down

0 comments on commit 28dcfa1

Please sign in to comment.