]> gitweb.fluxo.info Git - puppet-backup.git/commitdiff
Cleanup
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 9 May 2011 19:55:46 +0000 (16:55 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 9 May 2011 19:55:46 +0000 (16:55 -0300)
templates/rsync-check.sh.erb

index 4997cfe571443756fc7336f02da248cc315f7ae5..d7ab759e9e5bd22bea5b7e67a1abff1faf2f8c7d 100644 (file)
@@ -9,12 +9,7 @@ if [ -e "$BACKUP_FOLDER" ]; then
   cwd="`pwd`"
   cd $BACKUP_FOLDER
 
-  sets="`find -maxdepth 2 -name 'rsync' 2> /dev/null`"
-  if [ -z "$sets" ]; then
-    exit
-  fi
-  
-  for set in $sets; do
+  for set in `find -maxdepth 2 -name 'rsync'`; do
     metadatas="`find $set -name 'created' 2> /dev/null`"
 
     if [ ! -z "$metadatas" ] || [ -d "$set/<%= backupdir %>/duplicity" ]; then