summary refs log tree commit diff
path: root/contrib
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-04-15 11:24:07 +0000
committerLeah Neukirchen <leah@vuxu.org>2020-04-15 13:31:58 +0200
commit99b7d47a10d38b990badf2ea57c7032f12d7cdb5 (patch)
tree8fa9335e5983eadcc40d0ac6afeafd10a34b7d02 /contrib
parente56f8ad294d269bcb918c15168bf7b0c4f858fb4 (diff)
downloadmblaze-99b7d47a10d38b990badf2ea57c7032f12d7cdb5.tar.gz
mblaze-99b7d47a10d38b990badf2ea57c7032f12d7cdb5.tar.xz
mblaze-99b7d47a10d38b990badf2ea57c7032f12d7cdb5.zip
msuck: exit unsuccessfully if some groups failed
The failing exit status is EX_UNAVAILABLE from BSD's sysexits.h.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/msuck3
1 files changed, 3 insertions, 0 deletions
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