Skip to content
Snippets Groups Projects
Commit dcabf4fe authored by rhatto's avatar rhatto Committed by intrigeri
Browse files

Fixing escaping and debug message for remote metadata cleanup (#3727)

parent db45b981
No related branches found
No related tags found
No related merge requests found
......@@ -365,9 +365,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
......@@ -601,9 +601,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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment