From 0e1bd269884c234dd76b00fa30bae674e82892bf Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Sat, 5 Nov 2005 23:07:19 +0000 Subject: Added remote destination directory checking and auto creation if doesn't exist. Also fixed a bug in the rdiff handler that caused a unary operation error if the variable wasn't fixed --- handlers/rdiff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'handlers/rdiff') diff --git a/handlers/rdiff b/handlers/rdiff index 9de8650..05aacc3 100644 --- a/handlers/rdiff +++ b/handlers/rdiff @@ -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 -- cgit v1.2.3