diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-21 21:22:52 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-21 21:22:52 +0200 |
commit | 8b1bab7eb6e20cd85a723b7168a8214352f360d9 (patch) | |
tree | 57e9e2a1edf042990f99ec5fa09c753df731e4b3 /bin | |
parent | 2328a6a4082b261a6e9c6f6e0453e29127568508 (diff) |
bin/pkg: exec_hook: Change to package directory before including it
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pkg | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -141,7 +141,8 @@ exec_hook () { hook="$2" if ([ -r $PDIR/$package/hooks/$hook ]) { info "Executing $hook hook\n" - . $PDIR/$package/hooks/$hook + cd $PDIR/$package + . hooks/$hook } } |