commit
93c315c897
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue