]> git.madduck.net Git - etc/offlineimap.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

do not run if metadata directory does not exist
authormartin f. krafft <madduck@madduck.net>
Fri, 23 Dec 2011 13:04:36 +0000 (14:04 +0100)
committermartin f. krafft <madduck@madduck.net>
Fri, 23 Dec 2011 13:04:36 +0000 (14:04 +0100)
.bin/offlineimap

index 6ee4f0b8ca8ba6f9ba8042097cd3f458e4db5ee8..9d68f9183672f77cdaee410f3ef56111f0b43c5e 100755 (executable)
@@ -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))