mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-10-02 18:18:24 +00:00
33 lines
931 B
PowerShell
33 lines
931 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)
|
|
|
|
$globaldir = New-Object System.IO.DriveInfo($globaldir)
|
|
if($globaldir.DriveFormat -ne 'NTFS') {
|
|
error "Scoop requires an NTFS volume to work! Please point `$env:SCOOP_GLOBAL variable to another Drive."
|
|
$issues++
|
|
}
|
|
|
|
$scoopdir = New-Object System.IO.DriveInfo($scoopdir)
|
|
if($scoopdir.DriveFormat -ne 'NTFS') {
|
|
error "Scoop requires an NTFS volume to work! Please point `$env:SCOOP variable to another Drive."
|
|
$issues++
|
|
}
|
|
|
|
if($issues) {
|
|
warn "Found $issues potential $(pluralize $issues problem problems)."
|
|
} else {
|
|
success "No problems identified!"
|
|
}
|
|
|
|
exit 0
|