From aba6a57babfeb2132599974339c140e168097287 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 23 Dec 2011 14:04:36 +0100 Subject: [PATCH 1/1] do not run if metadata directory does not exist --- .bin/offlineimap | 5 +++++ 1 file changed, 5 insertions(+) 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)) -- 2.39.5