Skip to content

Commit cd380bc

Browse files
Fix a bug in install-powershell.ps1 (PowerShell#17794)
1 parent 0e4d2e4 commit cd380bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/install-powershell.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Function Remove-Destination([string] $Destination) {
125125
if ($IsWinEnv -and ($Destination -eq $PSHOME)) {
126126
# handle the case where the updated folder is currently in use
127127
Get-ChildItem -Recurse -File -Path $PSHOME | ForEach-Object {
128-
if ($_.extension -eq "old") {
128+
if ($_.extension -eq ".old") {
129129
Remove-Item $_
130130
} else {
131131
Move-Item $_.fullname "$($_.fullname).old"

0 commit comments

Comments
 (0)