mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-05-16 06:33:11 +00:00
20 lines
490 B
PowerShell
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!"
|
|
}
|
|
|