From 8b1bab7eb6e20cd85a723b7168a8214352f360d9 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 21 Jun 2008 21:22:52 +0200 Subject: bin/pkg: exec_hook: Change to package directory before including it --- bin/pkg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') 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 } } -- cgit v1.2.3