Skip to content

Commit

Permalink
Update install step for sdk pack
Browse files Browse the repository at this point in the history
  • Loading branch information
JoonghyunCho committed Feb 28, 2024
1 parent e651aff commit 71585e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions workload/scripts/workload-install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ function Install-Pack([string]$Id, [string]$Version, [string]$Kind) {
}
{($_ -eq "sdk") -or ($_ -eq "framework")} {
Expand-Archive -Path $TempZipFile -DestinationPath $TempUnzipDir
if ( ($kind -eq "sdk") -and ($Id -match ".net[0-9]+$")) {
$Id = $Id -replace (".net[0-9]+", "")
}
$TargetDirectory = $(Join-Path -Path $DotnetInstallDir -ChildPath "packs\$Id\$Version")
New-Item -Path $TargetDirectory -ItemType "directory" -Force | Out-Null
Copy-Item -Path "$TempUnzipDir/*" -Destination $TargetDirectory -Recurse -Force
Expand Down

0 comments on commit 71585e8

Please sign in to comment.