From: Joey Hess Date: Thu, 11 Oct 2007 06:11:36 +0000 (-0400) Subject: all skipped should be a nonzero exit X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/9107e4f2a67ca7f56ced7240bedaf90d479a85a0?ds=sidebyside all skipped should be a nonzero exit --- 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 {