From 964c31e3e7f89e9dd23274893c277f4762fb7971 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 3 Jan 2012 19:34:43 -0200 Subject: Fixing escaping and debug message for remote metadata cleanup at rsync (upstream #3727) --- files/handlers/rsync | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'files/handlers/rsync') diff --git a/files/handlers/rsync b/files/handlers/rsync index b3f0782..e098a84 100644 --- a/files/handlers/rsync +++ b/files/handlers/rsync @@ -371,9 +371,9 @@ function rotate_short_remote { fi # Cleanup orphaned metadata - for file in `ls $metadata`; do + for file in \`ls $metadata\`; do if [ ! -d "`dirname $folder`/\$file" ]; then - debug "removing orphaned metadata \$file" + echo "Debug: removing orphaned metadata \$file" rm -rf $metadata/\$file fi done @@ -607,9 +607,9 @@ function rotate_long_remote { done # Cleanup orphaned metadata - for file in `ls $backuproot/metadata`; do + for file in \`ls $backuproot/metadata\`; do if [ ! -d "$backuproot/\$file" ]; then - debug "removing orphaned metadata \$file" + echo "Debug: removing orphaned metadata \$file" rm -rf $backuproot/metadata/\$file fi done -- cgit v1.2.3