From 0f15bbd71542058534644c8bf47a0d22ec513517 Mon Sep 17 00:00:00 2001 From: romanitho <96626929+Romanitho@users.noreply.github.com> Date: Wed, 1 Nov 2023 09:48:19 +0100 Subject: [PATCH] Minor change spotted by @KnifMelti --- Winget-AutoUpdate-Install.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Winget-AutoUpdate-Install.ps1 b/Winget-AutoUpdate-Install.ps1 index 8b1f818..801d3cf 100644 --- a/Winget-AutoUpdate-Install.ps1 +++ b/Winget-AutoUpdate-Install.ps1 @@ -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." }