dup: fixed bandwidthlimit test

Thanks to Ian Beckwith <ianb@erislabs.net> for the patch.
This commit is contained in:
intrigeri 2009-07-18 10:45:45 +02:00
parent 8000beda16
commit f45803230a
3 changed files with 5 additions and 1 deletions

View File

@ -29,3 +29,4 @@ Adam Monsen - spec file updates
Matthew Palmer <mpalmer@debian.org> -- halt loglevel feature
dan@garthwaite.org -- reportspace bugfix
Tuomas Jormola <tj@solitudo.net> -- "when = manual" option
Ian Beckwith <ianb@erislabs.net> -- dup bandwidthlimit fix

View File

@ -26,6 +26,9 @@ version 0.9.7 -- UNRELEASED
. New lvm option (default=disabled) to backup LVM metadata for every
detected volume group.
. Backup dmsetup info as well, for easier restoring of Luks headers.
dup:
. Fixed bandwidthlimit syntax error. Thanks to Ian Beckwith for
the patch.
version 0.9.6 -- July 21, 2008
backupninja changes

View File

@ -106,7 +106,7 @@ duplicity_sub="`echo $duplicity_version | @AWK@ -F '.' '{print $3}'`"
# --sftp-command ourselves
scpoptions="$sshoptions"
if [ "$bandwidthlimit" =! 0 ]; then
if [ "$bandwidthlimit" != 0 ]; then
[ -z "$testurl" ] || warning 'The bandwidthlimit option is not used when desturl is set.'
scpoptions="$scpoptions -l $bandwidthlimit"
fi