diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-05-09 16:55:46 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-05-09 16:55:46 -0300 |
commit | 32df7ed52f990b18fa548a07b70c13dcc596b6ab (patch) | |
tree | 4b6b1191a098a1ed036b1c25d0706a985be8ad1f /templates/rsync-check.sh.erb | |
parent | d50412d467bc8ca06321216d80c7cb6880a61eeb (diff) | |
download | puppet-backup-32df7ed52f990b18fa548a07b70c13dcc596b6ab.tar.gz puppet-backup-32df7ed52f990b18fa548a07b70c13dcc596b6ab.tar.bz2 |
Cleanup
Diffstat (limited to 'templates/rsync-check.sh.erb')
-rw-r--r-- | templates/rsync-check.sh.erb | 7 |
1 files changed, 1 insertions, 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 |