From 1651a12dfbcf423764af9e12dd760adff3def0b4 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 16 Jan 2007 22:43:39 +0000 Subject: [PATCH] make sure we rename links and not just what they point to #162451 svn path=/main/trunk/; revision=5678 --- bin/ecompressdir | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.26.2