]> gitweb.fluxo.info Git - backupninja.git/commitdiff
dsync: break out of the while loop using 'break' instead of setting the failedcount...
authorMicah Anderson <micah@riseup.net>
Mon, 26 Nov 2012 17:49:43 +0000 (12:49 -0500)
committerMicah Anderson <micah@riseup.net>
Mon, 26 Nov 2012 17:49:43 +0000 (12:49 -0500)
handlers/dsync.in

index 2323326ce025696d53b9c6736c4f7a6a1ec730fe..db8e9528930ab5b45317759889a03a532cae0145 100644 (file)
@@ -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