forked from felixonmars/dnsmasq-china-list
verify: set exit code for single domain verification
This commit is contained in:
parent
da40bcc89f
commit
99637f99d8
|
@ -294,7 +294,7 @@ if __FILE__ == $0
|
|||
v = ChinaListVerify.new options.dns
|
||||
|
||||
if options.domain
|
||||
v.check_domain_verbose(options.domain, show_green: options.verbose)
|
||||
exit v.check_domain_verbose(options.domain, show_green: options.verbose) == true
|
||||
else
|
||||
v.check_domain_list(options.file, sample: options.sample, show_green: options.verbose)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue