[Rear-users] SF.net SVN: rear:[669] trunk/usr/share/rear/backup/RSYNC/default/ 50_make_rsync_backup.sh

gdha at users.sourceforge.net gdha at users.sourceforge.net
Thu Jul 7 18:38:07 CEST 2011


Revision: 669
          http://rear.svn.sourceforge.net/rear/?rev=669&view=rev
Author:   gdha
Date:     2011-07-07 16:38:07 +0000 (Thu, 07 Jul 2011)

Log Message:
-----------
quite interesting to find a stupid logic error via mail. When i=300 we make it 0 again; but then the case statement 300) would never be fulfilled. Bumper ;(

Modified Paths:
--------------
    trunk/usr/share/rear/backup/RSYNC/default/50_make_rsync_backup.sh

Modified: trunk/usr/share/rear/backup/RSYNC/default/50_make_rsync_backup.sh
===================================================================
--- trunk/usr/share/rear/backup/RSYNC/default/50_make_rsync_backup.sh	2011-07-07 15:29:50 UTC (rev 668)
+++ trunk/usr/share/rear/backup/RSYNC/default/50_make_rsync_backup.sh	2011-07-07 16:38:07 UTC (rev 669)
@@ -71,7 +71,7 @@
 		i=0
 		while sleep 1 ; kill -0 $BackupPID 2>/dev/null ; do
 			i=$((i+1))
-			[[ $i -eq 300 ]] && i=0
+			[[ $i -gt 300 ]] && i=0
 			case $i in
 
 			300)


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rear-users mailing list