From: Joey Hess Date: Fri, 27 Jun 2008 00:22:13 +0000 (-0400) Subject: abort online operations if any command fails X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/c428c39904c8cffa8389687cee683cfa32836920?ds=sidebyside abort online operations if any command fails --- diff --git a/mr b/mr index a6b5975..7eaaddd 100755 --- a/mr +++ b/mr @@ -1363,8 +1363,8 @@ online = if [ -s ~/.mrlog ]; then info "running offline commands" mv -f ~/.mrlog ~/.mrlog.old - if ! sh ~/.mrlog.old; then - error "offline commands failed; left in ~/.mrlog.old" + if ! sh -e ~/.mrlog.old; then + error "offline command failed; left in ~/.mrlog.old" fi rm -f ~/.mrlog.old else