Skip to content

Commit ab61002

Browse files
committed
Don't unset skipresourcecheck if already true
Allow for nil resource
1 parent 416a928 commit ab61002

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/site-scan.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,9 +389,10 @@ def exec_with_timeout(cmd, timeout)
389389
results[committee.name] = parse(committee.name, committee.site, committee.display_name)
390390
results[committee.name]['nonpmc'] = committee.nonpmc?
391391
sites_checked += 1
392-
sites_failed += 1 unless results[committee.name][:resources].start_with? 'Found'
392+
sites_failed += 1 unless results[committee.name][:resources]&.start_with? 'Found'
393393
# Don't keep checking unnecessarily
394-
$skipresourcecheck = (sites_failed > 10 or (sites_failed > 3 and sites_failed == sites_checked))
394+
# (and don't set false if already true)
395+
$skipresourcecheck = ($skipresourcecheck or sites_failed > 10 or (sites_failed > 3 and sites_failed == sites_checked))
395396
end
396397

397398
# Scan podlings that have a website

0 commit comments

Comments
 (0)