X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/29a4b08866ce803b123694f52dedf73a7614b9df..05b4b156dfab3c89cbf4652183f997ce6d78739a:/mr diff --git a/mr b/mr index 8fa688b..530f2e0 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 { @@ -350,9 +356,9 @@ sub loadconfig { } } -__DATA__ -# Some useful actions that mr knows about by default. +# Finally, some useful actions that mr knows about by default. # These can be overridden in ~/.mrconfig. +__DATA__ [default] update = \ if [ -d .svn ]; then \