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
|
v = ChinaListVerify.new options.dns
|
||||||
|
|
||||||
if options.domain
|
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
|
else
|
||||||
v.check_domain_list(options.file, sample: options.sample, show_green: options.verbose)
|
v.check_domain_list(options.file, sample: options.sample, show_green: options.verbose)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue