[PATCH] msuck: exit unsuccessfully if some groups failed

3 views
Skip to first unread message

Alyssa Ross

unread,
Apr 15, 2020, 7:24:17 AM4/15/20
to mbl...@googlegroups.com, Alyssa Ross
The failing exit status is EX_UNAVAILABLE from BSD's sysexits.h.
---
contrib/msuck | 3 +++
1 file changed, 3 insertions(+)

diff --git a/contrib/msuck b/contrib/msuck
index 44e1a98..4ba4464 100755
--- a/contrib/msuck
+++ b/contrib/msuck
@@ -62,6 +62,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
--
2.25.1

Reply all
Reply to author
Forward
0 new messages