logcompressor: find in find produces problems with {}: empty= ... {$empty} not.

This commit is contained in:
Denis Knauf 2012-07-11 13:33:11 +02:00
parent d0b68e706e
commit c3dd144915

View file

@ -35,6 +35,6 @@ done
for d
do
find "$d" -name archive -type d -exec sh -c '
find "$1" -type f ! -name "*.bz2" ! -name "*.gz" ! -name "*.lzma" ! -name "*.xz" -exec '"$n"' '"$p"' -- "{}" \;' -- '{}' \;
find "$d" -name archive -type d -exec sh -c 'empty=
find "$1" -type f ! -name "*.bz2" ! -name "*.gz" ! -name "*.lzma" ! -name "*.xz" -exec '"$n"' '"$p"' -- "{$empty}" \;' -- '{}' \;
done