Use XARGS for portable xargs handling when find doesn't find any files.
authorZac Medico <zmedico@gentoo.org>
Sat, 20 Jan 2007 22:01:02 +0000 (22:01 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 20 Jan 2007 22:01:02 +0000 (22:01 -0000)
svn path=/main/branches/2.1.2/; revision=5740

bin/ecompressdir

index 5d8c535814aa1a5d08c7be7505929b6785bc8eed..47ea5db419e368a20585df69a56cf8eaa487a366 100755 (executable)
@@ -28,7 +28,7 @@ for dir in "$@" ; do
                vecho "${0##*/}: $(ecompress --bin) ${dir#${D}}"
        fi
 
-       find "${dir}" -type f '!' -name '*'${suffix} -print0 | xargs -0 ecompress
+       find "${dir}" -type f '!' -name '*'${suffix} -print0 | ${XARGS} -0 ecompress
        ((ret+=$?))
        find -L "${dir}" -type l | \
        while read brokenlink ; do