aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-01-03 19:34:43 -0200
committerSilvio Rhatto <rhatto@riseup.net>2012-01-03 19:34:43 -0200
commit964c31e3e7f89e9dd23274893c277f4762fb7971 (patch)
tree72ac113945a5d534af562e0c4756c2963c5f76d9
parent64ddbbf5068148be63c5f049a08ce8371613e349 (diff)
downloadpuppet-backup-964c31e3e7f89e9dd23274893c277f4762fb7971.tar.gz
puppet-backup-964c31e3e7f89e9dd23274893c277f4762fb7971.tar.bz2
Fixing escaping and debug message for remote metadata cleanup at rsync (upstream #3727)
-rw-r--r--files/handlers/rsync8
1 files changed, 4 insertions, 4 deletions
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