diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-05-22 17:24:51 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-05-22 17:24:51 +0200 |
commit | 47692c0860e74bec27c2beb9b3c8b72d706e9164 (patch) | |
tree | d41a8540307d6c4ea2fc50bc097dbfa679187ac4 /bin | |
parent | 68a91d1f31afaf13df66acf36be4a3e11b57c740 (diff) |
bin/pkg: Use absolute paths where possible
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pkg | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 () { |