From ba0c5eb954f42237d5513afd3e7bdabb4c882918 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 20 Jan 2007 22:02:04 +0000 Subject: [PATCH] Use XARGS for portable xargs handling when find doesn't find any files. (branches/2.1.2 r5740) svn path=/main/trunk/; revision=5741 --- bin/ecompressdir | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ecompressdir b/bin/ecompressdir index 5d8c53581..47ea5db41 100755 --- a/bin/ecompressdir +++ b/bin/ecompressdir @@ -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 -- 2.26.2