From 48cc0beb2a72ed96de6056cbeae3ac53b289b124 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 10 Aug 2008 13:20:44 +0200 Subject: bin/pkg: Execute prereqs/hooks in subshells --- bin/pkg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/pkg') diff --git a/bin/pkg b/bin/pkg index 43e0896..31fe509 100755 --- a/bin/pkg +++ b/bin/pkg @@ -263,7 +263,7 @@ exec_hook () { if [[ -r $PDIR/$package/hooks/$hook ]] { info "Executing $package $hook hook\n" cd $PDIR/$package - source hooks/$hook + (source hooks/$hook) } } @@ -287,7 +287,7 @@ check_prereqs () { install+=$1 } - source prereqs + (source prereqs) if [[ -n $install ]] { info "$1 requires the following packages: $install\n" -- cgit v1.2.3