fixed ignore_version default value
[matthijs/upstream/backupninja.git] / handlers / rdiff.in
index 62c5a2803a10eab6a0b2fe96e6220aa6c8188257..bb704c5fddd11f169d6825bedca8e3a86bf87f11 100644 (file)
@@ -77,6 +77,7 @@ getconf options
 getconf testconnect yes
 getconf nicelevel 0
 getconf bwlimit
+getconf ignore_version no
 
 setsection source
 getconf type; sourcetype=$type
@@ -127,7 +128,7 @@ if [ "$testconnect" = "yes" ] || [ "${test}" -eq 1 ]; then
        test_connection $destuser $desthost
 fi
 
-if [ $ignore_version != "yes" ]; then
+if [ "$ignore_version" != "yes" ]; then
        # see that rdiff-backup has the same version at the source and destination
        sourceversion=`get_version $sourceuser $sourcehost`
        destversion=`get_version $destuser $desthost`