diff options
-rwxr-xr-x | bin/ecompressdir | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ecompressdir b/bin/ecompressdir index 3f6fb251e..5d8c53581 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 |