List error check
parent
4aef145a32
commit
067a5aab1e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue