diff options
author | Elijah Saxon <elijah@riseup.net> | 2007-01-22 21:35:52 +0000 |
---|---|---|
committer | Elijah Saxon <elijah@riseup.net> | 2007-01-22 21:35:52 +0000 |
commit | 5621db48e9a9319860d790ef06ad2d05f74eb0ac (patch) | |
tree | f00c5e3aed173efb79db2b696af870ca1f1b4d52 | |
parent | 5ab8f588cbaf69b86ce41e8de5dc52251a8e00c7 (diff) | |
download | backupninja-5621db48e9a9319860d790ef06ad2d05f74eb0ac.tar.gz backupninja-5621db48e9a9319860d790ef06ad2d05f74eb0ac.tar.bz2 |
made source directory not found into warning instead of fatal
-rw-r--r-- | handlers/maildir | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/handlers/maildir b/handlers/maildir index b7c9b3e..49b2542 100644 --- a/handlers/maildir +++ b/handlers/maildir @@ -78,7 +78,10 @@ function do_user() { local letter=${user:0:1} local source="$srcdir/$letter/$user/" local target="$destdir/$letter/$user/$btype.1" - [ -d $source ] || fatal "maildir $source not found". + if [ ! -d $source ]; then + warning "maildir $source not found" + return + fi debug "syncing" ret=`$RSYNC -e "ssh -p $destport" -r \ |