From 019ac86f048ef9f32824b1879f53bfa794e71426 Mon Sep 17 00:00:00 2001 From: micah Date: Sat, 24 Nov 2007 23:13:24 +0000 Subject: [PATCH] fix Trac#25 git-svn-id: http://code.autistici.org/svn/backupninja/trunk@508 758a04ac-41e6-0310-8a23-8373a73cc35d --- ChangeLog | 1 + handlers/maildir.in | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 50a4652..6ebf602 100644 --- a/ChangeLog +++ b/ChangeLog @@ -30,6 +30,7 @@ version 0.9.5 -- unreleased . Added an examples file (Closes: Trac#23) . Applied patch from Anarcat that fixes the cp/mkdir calls to not use GNU coreutils options, as well as some bashisms (Closes: Trac#24) + . Fix test mode (Closes: Trac#25) mysql: . Fixed case where odd combination of configuration options caused sqldump backups to get overwritten with an empty file (Closes: #402679) diff --git a/handlers/maildir.in b/handlers/maildir.in index 0d88e92..7a68e85 100644 --- a/handlers/maildir.in +++ b/handlers/maildir.in @@ -62,7 +62,10 @@ srcdir=${srcdir%/} [ "$multiconnection" == "notset" ] && fatal "The maildir handler uses a very different destination format. See the example .maildir for more information" -[ ! $test ] || testflags="--dry-run -v" +if [ $test ]; then + testflags="--dry-run -v" +fi + rsyncflags="$testflags -e 'ssh -p $destport' -r -v --ignore-existing --delete --size-only --bwlimit=$speedlimit" excludes="--exclude '.Trash/\*' --exclude '.Mistakes/\*' --exclude '.Spam/\*'" -- 2.30.2