Files
Scoop/bin/missing-checkver.ps1
T

29 lines
770 B
PowerShell

# list manifests which do not specify a checkver regex
param($dir)
. "$psscriptroot\..\lib\core.ps1"
. "$psscriptroot\..\lib\manifest.ps1"
if(!$dir) { $dir = "$psscriptroot\..\bucket" }
$dir = resolve-path $dir
write-host "[" -nonewline
write-host -f green "C" -nonewline
write-host "]heckver"
write-host " | [" -nonewline
write-host -f cyan "A" -nonewline
write-host "]utoupdate"
write-host " | |"
gci $dir "*.json" | % {
$json = parse_json "$dir\$_"
write-host "[" -nonewline
write-host -f green -nonewline $( If ($json.checkver) {"C"} Else {" "} )
write-host "]" -nonewline
write-host "[" -nonewline
write-host -f cyan -nonewline $( If ($json.autoupdate) {"A"} Else {" "} )
write-host "] " -nonewline
write-host (strip_ext $_)
}