Skip to content

Commit

Permalink
checkver: remove old commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
r15ch13 committed Sep 18, 2018
1 parent 3453487 commit 7275403
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions bin/checkver.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -230,29 +230,3 @@ while($in_progress -gt 0) {
}

set_https_protocols $original

<#
write-host "checking $(strip_ext (fname $_))..." -nonewline
$expected_ver = $json.version
$url = $json.checkver.url
if(!$url) { $url = $json.homepage }
$regexp = $json.checkver.re
if(!$regexp) { $regexp = $json.checkver }
$page = $wc.downloadstring($url)
if($page -match $regexp) {
$ver = $matches[1]
if($ver -eq $expected_ver) {
write-host "$ver" -f darkgreen
} else {
write-host "$ver" -f darkred -nonewline
write-host " (scoop version is $expected_ver)"
}
} else {
write-host "couldn't match '$regexp' in $url" -f darkred
}
#>

0 comments on commit 7275403

Please sign in to comment.