X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=bin%2FBackupPC_trashClean;h=43abbf650361db737615983237d53a5ac11059ef;hb=e4a233559926fe41888b2f6c5cc716401b715162;hp=edea64ca34253c71f132b8bd8f9933c110b73496;hpb=7dee89bfce659051d486cc66515bb7f22bbc4f09;p=BackupPC.git diff --git a/bin/BackupPC_trashClean b/bin/BackupPC_trashClean index edea64c..43abbf6 100755 --- a/bin/BackupPC_trashClean +++ b/bin/BackupPC_trashClean @@ -29,7 +29,7 @@ # #======================================================================== # -# Version 2.0.0beta1, released 30 Mar 2003. +# Version 2.0.0beta2, released 13 Apr 2003. # # See http://backuppc.sourceforge.net. # @@ -51,7 +51,9 @@ $bpc->ChildInit(); ########################################################################### while ( 1 ) { print("processState running\n"); - 1 while ( $bpc->RmTreeTrashEmpty("$TopDir/trash") ); + if ( $bpc->RmTreeTrashEmpty("$TopDir/trash") < 0 ) { + print("log BackupPC_trashClean failed to empty $TopDir/trash\n"); + } print("processState idle\n"); sleep($Conf{TrashCleanSleepSec} || 300); }