From 99b7d47a10d38b990badf2ea57c7032f12d7cdb5 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Wed, 15 Apr 2020 11:24:07 +0000 Subject: msuck: exit unsuccessfully if some groups failed The failing exit status is EX_UNAVAILABLE from BSD's sysexits.h. --- contrib/msuck | 3 +++ 1 file changed, 3 insertions(+) (limited to 'contrib') diff --git a/contrib/msuck b/contrib/msuck index 3fe58b7..d75591f 100755 --- a/contrib/msuck +++ b/contrib/msuck @@ -66,6 +66,7 @@ ARGV.each { |group| msg = nntp.gets unless msg =~ /^211 / STDERR.puts msg + $exit = 69 next end @@ -135,3 +136,5 @@ ARGV.each { |group| puts } + +exit $exit || 0 -- cgit 1.4.1