From 47692c0860e74bec27c2beb9b3c8b72d706e9164 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 22 May 2008 17:24:51 +0200 Subject: bin/pkg: Use absolute paths where possible --- bin/pkg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin') 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 () { -- cgit v1.2.3