From: martin f. krafft Date: Fri, 23 Dec 2011 13:04:36 +0000 (+0100) Subject: do not run if metadata directory does not exist X-Git-Url: https://git.madduck.net/etc/offlineimap.git/commitdiff_plain/aba6a57babfeb2132599974339c140e168097287 do not run if metadata directory does not exist --- diff --git a/.bin/offlineimap b/.bin/offlineimap index 6ee4f0b..9d68f91 100755 --- a/.bin/offlineimap +++ b/.bin/offlineimap @@ -53,6 +53,11 @@ for account in $accounts; do continue } + [ -d $VAR/$account ] || { + err "E: $VAR/$account does not exist, please create it first." + continue + } + eval /usr/bin/offlineimap -a $account -k metadata=$VAR/$account $opts || \ failures=$(($failures + 1))