X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/2d1194662c33c44c084410fb23c3953bac18e66d..05b4b156dfab3c89cbf4652183f997ce6d78739a:/mr diff --git a/mr b/mr index 8d90af3..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 \ @@ -376,7 +382,7 @@ commit = \ if [ -d .svn ]; then \ svn commit "$@"; \ elif [ -d .git ]; then \ - git commit -a "$@" && git push --all \ + git commit -a "$@" && git push --all; \ else \ echo "mr commit: unknown repo type"; \ exit 1; \