Exclude log files when forcing reinstall

pull/98/head
romanitho 2022-06-03 20:54:41 +02:00
parent b8a1f97ef2
commit 45a16346e4
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ function Install-WingetAutoUpdate{
New-Item -ItemType Directory -Force -Path $WingetUpdatePath | Out-Null New-Item -ItemType Directory -Force -Path $WingetUpdatePath | Out-Null
} }
else { else {
Remove-Item -Path "$WingetUpdatePath\*" -Recurse -Force Remove-Item -Path "$WingetUpdatePath\*" -Exclude *.log -Recurse -Force
} }
Copy-Item -Path "$PSScriptRoot\Winget-AutoUpdate\*" -Destination $WingetUpdatePath -Recurse -Force -ErrorAction SilentlyContinue Copy-Item -Path "$PSScriptRoot\Winget-AutoUpdate\*" -Destination $WingetUpdatePath -Recurse -Force -ErrorAction SilentlyContinue