Added remote destination directory checking and auto creation if doesn't exist.
[matthijs/upstream/backupninja.git] / handlers / rdiff
index 9de8650e1a289414d659bddc9036b1b9a36ec7b5..05aacc319f908baa2b8a208e611d1afb89d67227 100644 (file)
@@ -104,7 +104,7 @@ then
 fi
 
 # check the connection at the source and destination
-if [ "$testconnect" == "yes" -o $test ]; then
+if [ "$testconnect" = "yes" ] || [ "${test}" -eq 1 ]; then
        test_connection $sourceuser $sourcehost
        test_connection $destuser $desthost
 fi