logcompressor: find in find produces problems with {}: empty= ... {$empty} not.
This commit is contained in:
parent
d0b68e706e
commit
c3dd144915
|
@ -35,6 +35,6 @@ done
|
||||||
|
|
||||||
for d
|
for d
|
||||||
do
|
do
|
||||||
find "$d" -name archive -type d -exec sh -c '
|
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"' -- "{}" \;' -- '{}' \;
|
find "$1" -type f ! -name "*.bz2" ! -name "*.gz" ! -name "*.lzma" ! -name "*.xz" -exec '"$n"' '"$p"' -- "{$empty}" \;' -- '{}' \;
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue