Files
Scoop/libexec/scoop-checkup.ps1
T
2017-04-21 19:02:17 +10:00

20 lines
490 B
PowerShell

# Usage: scoop checkup
# Summary: Check for potential problems
# Help: Performs a series of diagnostic tests to try to identify things that may
# cause problems with Scoop.
. "$psscriptroot\..\lib\core.ps1"
. "$psscriptroot\..\lib\diagnostic.ps1"
$issues = 0
$issues += !(check_windows_defender $false)
$issues += !(check_windows_defender $true)
if($issues) {
warn "`nFound $issues potential $(pluralize $issues problem problems)."
} else {
success "No problems identified!"
}