aboutsummaryrefslogtreecommitdiff
path: root/handlers/dsync.in
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2012-11-26 12:49:43 -0500
committerMicah Anderson <micah@riseup.net>2012-11-26 12:49:43 -0500
commit0dbac2a1c1f4a8d6ce6c23c2dde52a174e5b4661 (patch)
treec6783db6588a42b5f3f7fd60632318ed153666e1 /handlers/dsync.in
parent03eadb018b666c19861b79567755fcc54bfb8d7d (diff)
downloadbackupninja-0dbac2a1c1f4a8d6ce6c23c2dde52a174e5b4661.tar.gz
backupninja-0dbac2a1c1f4a8d6ce6c23c2dde52a174e5b4661.tar.bz2
dsync: break out of the while loop using 'break' instead of setting the failedcount number, otherwise this will trigger the warning later
Diffstat (limited to 'handlers/dsync.in')
-rw-r--r--handlers/dsync.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/handlers/dsync.in b/handlers/dsync.in
index 2323326..db8e952 100644
--- a/handlers/dsync.in
+++ b/handlers/dsync.in
@@ -108,7 +108,7 @@ function do_user() {
let "failedcount = failedcount + 1"
elif [ $ret == 0 ]; then
# things worked, so we break out of the loop
- let "failedcount = 4"
+ break
ssh -o PasswordAuthentication=no $desthost -l $destuser -i $destid_file $sshoptions "date +%c%n%s > $stripped_destdir/$letter/$user/$btype.1/created"
elif [ $ret != 0 ]; then
# things did not work in a good way, report it and try again