mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix a bug in install-powershell.ps1 (#17794)
This commit is contained in:
@@ -125,7 +125,7 @@ Function Remove-Destination([string] $Destination) {
|
||||
if ($IsWinEnv -and ($Destination -eq $PSHOME)) {
|
||||
# handle the case where the updated folder is currently in use
|
||||
Get-ChildItem -Recurse -File -Path $PSHOME | ForEach-Object {
|
||||
if ($_.extension -eq "old") {
|
||||
if ($_.extension -eq ".old") {
|
||||
Remove-Item $_
|
||||
} else {
|
||||
Move-Item $_.fullname "$($_.fullname).old"
|
||||
|
||||
Reference in New Issue
Block a user