Minor change spotted by @KnifMelti

pull/458/head
romanitho 2023-11-01 09:48:19 +01:00
parent 7b1a749b4e
commit 0f15bbd715
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ function Install-WingetAutoUpdate {
Write-ToLog "-> Copied a brand new Whitelist."
}
#Else, only copy the "included_apps.txt" list if not existing in WAU
elseif (Test-Path "$WAUinstallPath\included_apps.txt") {
elseif (!(Test-Path "$WAUinstallPath\included_apps.txt")) {
Copy-Item -Path "$PSScriptRoot\included_apps.txt" -Destination $WAUinstallPath -Recurse -Force -ErrorAction SilentlyContinue
Write-ToLog "-> No Whitelist was existing. Copied from install sources."
}