summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-04-12 12:43:39 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-04-12 12:43:39 +0200
commitcdcefe05460485058a994bf3e16641ecb69349d8 (patch)
treed6f6082bbaf618a82572e69102c95bf16fb24b2f /bin/pkg
parent57d5db7d4e42a29a9205ac101a2119bcdac8a03c (diff)
pkg: populate_collected: Fixed check if bin/.. needs update
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pkg b/bin/pkg
index 0263ae9..6c3c8ef 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -557,7 +557,7 @@ function populate_collected {
}
for i in bin/*(-*N); {
if [[ -L $HOME/$i || ! -e $HOME/$i ]] {
- if [[ $(readlink $HOME/$i) != "../$1/$i" ]] {
+ if [[ $(readlink $HOME/$i) != (../${PDIR//$HOME\/}|$PDIR)/$1/$i ]] {
rm -f $HOME/$i
if [[ $PDIR == ${HOME}* ]] {
ln -s ../${PDIR//$HOME\/}/$1/$i $HOME/$i