summaryrefslogtreecommitdiffstats
path: root/bin/ecompressdir
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ecompressdir')
-rwxr-xr-xbin/ecompressdir11
1 files changed, 3 insertions, 8 deletions
diff --git a/bin/ecompressdir b/bin/ecompressdir
index 405f8e2f5..f6b7ed74d 100755
--- a/bin/ecompressdir
+++ b/bin/ecompressdir
@@ -25,19 +25,14 @@ for dir in "$@" ; do
vecho "${0##*/}: $(ecompress --bin) ${dir#${D}}"
fi
- find "${dir}" -type f -print0 | xargs -0 ecompress
+ find "${dir}" -type f '!' -name '*'$(ecompress --suffix) -print0 | xargs -0 ecompress
((ret+=$?))
find -L "${dir}" -type l | \
while read brokenlink ; do
olddest=$(readlink "${brokenlink}")
newdest="${olddest}${suffix}"
- if [[ -e ${newdest} ]] ; then
- ln -snf "${newdest}" "${brokenlink}"
- ((ret+=$?))
- else
- vecho "ecompressdir: unknown broken symlink: ${brokenlink}"
- ((++ret))
- fi
+ ln -snf "${newdest}" "${brokenlink}"
+ ((ret+=$?))
done
done