summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ecompressdir')
-rwxr-xr-xbin/ecompressdir3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ecompressdir b/bin/ecompressdir
index 3f6fb251..5d8c5358 100755
--- a/bin/ecompressdir
+++ b/bin/ecompressdir
@@ -34,7 +34,8 @@ for dir in "$@" ; do
while read brokenlink ; do
olddest=$(readlink "${brokenlink}")
newdest="${olddest}${suffix}"
- ln -snf "${newdest}" "${brokenlink}"
+ rm -f "${brokenlink}"
+ ln -snf "${newdest}" "${brokenlink}${suffix}"
((ret+=$?))
done
done