From 32df7ed52f990b18fa548a07b70c13dcc596b6ab Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 9 May 2011 16:55:46 -0300 Subject: Cleanup --- templates/rsync-check.sh.erb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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 -- cgit v1.2.3