aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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