diff options
author | Micah Anderson <micah@riseup.net> | 2005-11-05 23:07:19 +0000 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2005-11-05 23:07:19 +0000 |
commit | 0e1bd269884c234dd76b00fa30bae674e82892bf (patch) | |
tree | ef4709a4b997e9ce897f6f8786a22772ab1052be /handlers/rdiff | |
parent | 5f6dc7d1b9eafb760f29abb9f87cccaf44845020 (diff) | |
download | backupninja-0e1bd269884c234dd76b00fa30bae674e82892bf.tar.gz backupninja-0e1bd269884c234dd76b00fa30bae674e82892bf.tar.bz2 |
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
Diffstat (limited to 'handlers/rdiff')
-rw-r--r-- | handlers/rdiff | 2 |
1 files changed, 1 insertions, 1 deletions
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 |