aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-05-09 16:55:46 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-05-09 16:55:46 -0300
commit32df7ed52f990b18fa548a07b70c13dcc596b6ab (patch)
tree4b6b1191a098a1ed036b1c25d0706a985be8ad1f
parentd50412d467bc8ca06321216d80c7cb6880a61eeb (diff)
downloadpuppet-backup-32df7ed52f990b18fa548a07b70c13dcc596b6ab.tar.gz
puppet-backup-32df7ed52f990b18fa548a07b70c13dcc596b6ab.tar.bz2
Cleanup
-rw-r--r--templates/rsync-check.sh.erb7
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