Skip to content

Commit

Permalink
Be sure not to clobber existing files when installing dotnet. (#1788)
Browse files Browse the repository at this point in the history
This is the same fix as PowerShell/PowerShell#17141
  • Loading branch information
JamesWTruher authored May 23, 2022
1 parent 1e2351f commit e6019da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ function Install-Dotnet
$installScriptPath = Receive-DotnetInstallScript
$installScriptName = [System.IO.Path]::GetFileName($installScriptPath)
If ( $PSCmdlet.ShouldProcess("$installScriptName for $version")) {
& "${installScriptPath}" -c release -version $version
& "${installScriptPath}" -c release -version $version -SkipNonVersionedFiles
}
# this may be the first time that dotnet has been installed,
# set up the executable variable
Expand Down

0 comments on commit e6019da

Please sign in to comment.