List error check

pull/178/head
KnifMelti 2022-10-11 23:54:17 +02:00
parent 4aef145a32
commit 067a5aab1e
1 changed files with 7 additions and 1 deletions

View File

@ -83,8 +83,14 @@ if (Test-Network) {
Write-Log "Newer List copied/downloaded to local path: $($WAUConfig.InstallLocation)" "Yellow" Write-Log "Newer List copied/downloaded to local path: $($WAUConfig.InstallLocation)" "Yellow"
} }
else { else {
if ((Test-Path "$WorkingDir\included_apps.txt") -or (Test-Path "$WorkingDir\excluded_apps.txt")) {
Write-Log "List is up to date." "Green" Write-Log "List is up to date." "Green"
} }
else {
Write-Log "List doesn't exist!." "Red"
Exit 0
}
}
} }
#Get White or Black list #Get White or Black list