Merge pull request #98 from Romanitho/fix-log

Exclude log files when forcing reinstall
pull/99/head
Romain 2022-06-03 20:55:30 +02:00 committed by GitHub
commit 93c315c897
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
}
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