Skip to content
Snippets Groups Projects
Commit 5621db48 authored by elijah's avatar elijah
Browse files

made source directory not found into warning instead of fatal

parent 5ab8f588
Branches
Tags backupninja-0.4.1
No related merge requests found
......@@ -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 \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment