From 9107e4f2a67ca7f56ced7240bedaf90d479a85a0 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 11 Oct 2007 02:11:36 -0400 Subject: [PATCH 1/1] all skipped should be a nonzero exit --- mr | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mr b/mr index 8fa688b..f769eff 100755 --- a/mr +++ b/mr @@ -263,7 +263,13 @@ print "\nmr $action: finished (".join("; ", showstat($#failed+1, "failed", "failed"), showstat($#skipped+1, "skipped", "skipped"), ).")\n"; -exit @failed ? 1 : 0; +if (@failed) { + exit 1; +} +elsif (! @successful && @skipped) { + exit 1; +} +exit 0; my %loaded; sub loadconfig { -- 2.39.5