diff --git a/Winget-AutoUpdate/winget-upgrade.ps1 b/Winget-AutoUpdate/winget-upgrade.ps1 index 79be699..6c9ff00 100644 --- a/Winget-AutoUpdate/winget-upgrade.ps1 +++ b/Winget-AutoUpdate/winget-upgrade.ps1 @@ -83,7 +83,13 @@ if (Test-Network) { Write-Log "Newer List copied/downloaded to local path: $($WAUConfig.InstallLocation)" "Yellow" } else { - Write-Log "List is up to date." "Green" + if ((Test-Path "$WorkingDir\included_apps.txt") -or (Test-Path "$WorkingDir\excluded_apps.txt")) { + Write-Log "List is up to date." "Green" + } + else { + Write-Log "List doesn't exist!." "Red" + Exit 0 + } } }