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