From: martin f. krafft Date: Tue, 2 Feb 2010 06:19:04 +0000 (+1300) Subject: exit after offlineimap if it failed X-Git-Url: https://git.madduck.net/etc/offlineimap.git/commitdiff_plain/2fe7b5485cac1d59a5d0b3ab93a0d6688b4788df?ds=sidebyside;pf=etc exit after offlineimap if it failed --- diff --git a/.bin/offlineimap b/.bin/offlineimap index ad01298..c9f8b2a 100755 --- a/.bin/offlineimap +++ b/.bin/offlineimap @@ -8,10 +8,8 @@ if ! test -t 0; then fi ret=0 -/usr/bin/offlineimap -o "$@" || ret=$? +/usr/bin/offlineimap -o "$@" || exit $? if [ -x "$(command -v notmuch)" ]; then - notmuch new + notmuch new || exit $? fi - -exit $ret