summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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