verify: set exit code for single domain verification

This commit is contained in:
Felix Yan 2023-05-24 14:00:39 +00:00
parent da40bcc89f
commit 99637f99d8
No known key found for this signature in database
GPG Key ID: 786C63F330D7CB92
1 changed files with 1 additions and 1 deletions

View File

@ -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