Added the "Emacs comment line" on top of every shell file.
[matthijs/upstream/backupninja.git] / handlers / rdiff
index 9de8650e1a289414d659bddc9036b1b9a36ec7b5..209606d71de6f22d2445f746ad1e1344f6efe43e 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*-
 #
 # rdiff-backup handler script for backupninja
 # requires rdiff-backup
@@ -104,7 +105,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