summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pkg')
-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
}
}