X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/fa02bbe2e11fa35b288bd4a33d1def1cc8a81537..9107e4f2a67ca7f56ced7240bedaf90d479a85a0:/mr?ds=sidebyside diff --git a/mr b/mr index 8d90af3..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 { @@ -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; \