summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-06-21 21:22:52 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-06-21 21:22:52 +0200
commit8b1bab7eb6e20cd85a723b7168a8214352f360d9 (patch)
tree57e9e2a1edf042990f99ec5fa09c753df731e4b3 /bin
parent2328a6a4082b261a6e9c6f6e0453e29127568508 (diff)
bin/pkg: exec_hook: Change to package directory before including it
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pkg3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/pkg b/bin/pkg
index 316e3c8..67153bd 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -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
}
}