summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-05-22 17:24:51 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-05-22 17:24:51 +0200
commit47692c0860e74bec27c2beb9b3c8b72d706e9164 (patch)
treed41a8540307d6c4ea2fc50bc097dbfa679187ac4
parent68a91d1f31afaf13df66acf36be4a3e11b57c740 (diff)
bin/pkg: Use absolute paths where possible
-rwxr-xr-xbin/pkg8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/pkg b/bin/pkg
index 6b295a8..c3700f3 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -43,12 +43,12 @@ pkg_add () {
cd $PDIR || return 255
echo_status 'Retrieving package...'
$VCS_CMD $VCS_OPTIONS $VCS_ADD $PKG_ROOT/$1 || return 255
- if [ -f $1/hooks/post-add ]; then
+ if [ -f $PDIR/$1/hooks/post-add ]; then
echo_status 'Executing post-add hook'
- . $1/hooks/post-add
+ . $PDIR/$1/hooks/post-add
fi
echo_status 'Checking symlinks...'
- cd $1
+ cd $PDIR/$1
checklinks $CL_OPTIONS
return 0
}
@@ -75,7 +75,7 @@ pkg_update () {
echo_status 'Executing post-update hook'
. hooks/post-update
fi
- cd ..
+ cd $PDIR
}
pkg_update_wrapper () {