aboutsummaryrefslogtreecommitdiff
path: root/handlers/rdiff
diff options
context:
space:
mode:
Diffstat (limited to 'handlers/rdiff')
-rw-r--r--handlers/rdiff2
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