dup: fixed bandwidth vs desturl testing
[matthijs/upstream/backupninja.git] / handlers / dup.in
index aed6030ca5789198b61ffa36889aaa3924eec164..59aa90a424cd24469dad2110d50e0a87a2c7f858 100644 (file)
@@ -106,8 +106,8 @@ duplicity_sub="`echo $duplicity_version | @AWK@ -F '.' '{print $3}'`"
 #    --sftp-command ourselves
 
 scpoptions="$sshoptions"
-if [ "$bandwidthlimit" =! 0 ]; then
-   [ -z "$testurl" ] || warning 'The bandwidthlimit option is not used when desturl is set.'
+if [ "$bandwidthlimit" != 0 ]; then
+   [ -z "$desturl" ] || warning 'The bandwidthlimit option is not used when desturl is set.'
    scpoptions="$scpoptions -l $bandwidthlimit"
 fi