From: Silvio Rhatto Date: Mon, 9 May 2011 19:55:46 +0000 (-0300) Subject: Cleanup X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=32df7ed52f990b18fa548a07b70c13dcc596b6ab;p=puppet-backup.git Cleanup --- diff --git a/templates/rsync-check.sh.erb b/templates/rsync-check.sh.erb index 4997cfe..d7ab759 100644 --- a/templates/rsync-check.sh.erb +++ b/templates/rsync-check.sh.erb @@ -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