Skip to content

Commit e6019da

Browse files
authored
Be sure not to clobber existing files when installing dotnet. (#1788)
This is the same fix as PowerShell/PowerShell#17141
1 parent 1e2351f commit e6019da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ function Install-Dotnet
456456
$installScriptPath = Receive-DotnetInstallScript
457457
$installScriptName = [System.IO.Path]::GetFileName($installScriptPath)
458458
If ( $PSCmdlet.ShouldProcess("$installScriptName for $version")) {
459-
& "${installScriptPath}" -c release -version $version
459+
& "${installScriptPath}" -c release -version $version -SkipNonVersionedFiles
460460
}
461461
# this may be the first time that dotnet has been installed,
462462
# set up the executable variable

0 commit comments

Comments
 (0)