From 2fe7b5485cac1d59a5d0b3ab93a0d6688b4788df Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 2 Feb 2010 19:19:04 +1300 Subject: [PATCH] exit after offlineimap if it failed --- .bin/offlineimap | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 -- 2.39.5