X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/2d1194662c33c44c084410fb23c3953bac18e66d..4b1b48e959a7d7a927396fb56c2ee5a235ec7b58:/mr?ds=sidebyside 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; \